To p t i p !
Unless they are indexed, searching through Quarter and Petty Sessions papers can be time-consuming so if you think your ancestor might have had a brush with the law, the first thing to do is to consult the newspapers for reports of any court case. For 20th century cases, restrictions are likely to apply to any court papers so the newspapers might be your only hope.