What is the meaning of [Cut Off Your Nose to Spite Your Face]

To act in a proud way that ultimately damages your own cause