李下に冠を正さず(りかにかんむりをたださず)

Japanese vocabulary

Meaning: leave no room for scandal; don't do anything that can be misinterpreted; don't straighten your cap under a plum tree (because when you raise your hands it might look as if you're trying to steal the plums)

See it used in real works