afoul of
afoul of {prep.}
1. In collision with.
The boat ran afoul of a buoy.
2. In or into trouble with.
The thief ran afoul of the night watchman.
Speeders can expect to fall afoul of the law sometimes.
Categories:
Source: A Dictionary of American Idioms