afoul (adv.) Look up afoul at Dictionary.com
1809, originally nautical, "in collision or entanglement," from a- (1) + foul (adj.). From 1833 in general sense of "in violent or hostile conflict," mainly in phrases such as run afoul of.