What does afoul mean?
The definition of afoul
A*foul”, adv. & a.
Etym: [Pref. a- + foul.]

In collision; entangled. Totten. To run afoul of, to run against or come into collision with, especially so as to become entangled or to cause injury.