"Cutting off the nose to spite the face" is an expression used
to describe a needlessly self-destructive over-reaction to a
problem: "Don't cut off your nose to spite your face" is a warning
against pursuing revenge in a way that would damage oneself more
than the object of one's anger.