keep/stay out of trouble

idiom

Definition of keep/stay out of trouble

: to behave well : to not do anything bad