The phrase 'keep your nose clean' is an idiomatic expression that means to stay out of trouble. In this context, it means that the mother always tells the speaker to avoid getting into trouble.