Have A Brush With

Have an encounter or come into conflict with something, especially the law or authority.

Examples:

  • This was not the first time that Bob had a brush with the law.