The Idiomatic

“A word to the wise shouldn't cut off your nose to spite your face.”