Definitions of run afoul:

  • verb:   go against, as of rules and laws