run afoul of

Verb

 * 1)  To become entangled in; to run aground on.
 * 2)  To contravene.