on the right side of the law

idiom

Definition of on the right side of the law

used to say that someone is not living the life of a criminal Now that she's out of prison she's trying to stay on the right side of the law.