In the face of temptation, you have to know how to keep your integrity.
Tips
history
From 《孟子·万章上》: "归洁其身而已矣" — "he simply returned and kept himself pure." Mencius on principled officials who retreated rather than compromise. Later reshaped as 洁身自好.
mistakes
好 here is 4th tone (hào, "to love; to prize"), not 3rd tone (hǎo, "good"). The idiom means "to prize keeping oneself clean," not "to be good oneself."