idiom
on the right side of the law
Meaning
acting legally; not breaking any laws
Example
He wants to stay **on the right side of the law**.