police matter; brush with the law
Refers to a situation that involves the police, often implying trouble or legal consequences. Commonly used in phrases like 警察沙汰になる (to become a police matter).
The noise from the neighborhood became a police matter.
He has had a brush with the law for shoplifting.