Dictionary.com
Thesaurus.com
Synonyms

keep one's nose clean

Idioms  
  1. Stay out of trouble. For example, Dad told Brian to keep his nose clean from now on or he'd cut off his allowance. [Colloquial; late 1800s]