expression
avoid compromising situations; don't do anything that could be misinterpreted
Proverb meaning one should avoid actions that might invite suspicion, even if innocent. Literally: 'In a melon field, don't put on your sandals' (lest someone think you're stealing melons).
瓜田に履を納れずというから、疑われるような行動は避けたほうがいい。
As the proverb says, 'Don't put on your sandals in a melon field,' so you should avoid actions that might arouse suspicion.
From a classical Chinese proverb (瓜田不納履, 李下不整冠), warning against behavior that could be misconstrued.