Fetching details from the dictionary...
to violate the law; to have a brush with the law; to have a run-in with the law