
On the wrong side of the law
Negative connotation
This phrase implies a poor judgment or choice, casting a shadow on one's character. 
Legal trouble
Use when someone is actually in trouble with the law, not just behaving badly. 
Context Matters
The phrase is often used in news or stories about crime and justice. 