This phrase 'keep your nose clean' literally means: keep out of trouble. Example in use: "Please keep your nose clean and stay far away from the troublemakers."
The same phrase could be said "Keep your hands clean"