Cut off one’s nose to spite one’s face
A warning against reckless action that results in just as much, if not more, harm to oneself. It is not known whether a real nose was ever cut off in the coining of this expression, but since it has been around since the 13th century, it is quite possible.