In the states there is a saying — He cut off his nose to spite his face. Perhaps it is international ?
wikipedia says — 'is an expersssion 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 acting out of pique or persuing revenge in a way that would damage oneself more than the object of one's anger…
apparently it dates back for centuries…
Cambridge says 'to cause problems for yourself by trying to punish someone else.
The Phrase Finder says ' disadvantage yourself in order to do harm to an adversary.
Perhaps an example ?? Say that a neighbor was in the 'habbit' of sharing candy with me and my friends on a regular basis. My neighbor would bargain at the candy store for the best prices and I decided to take umbrage to that. So one day I decided that I didn't like this bargaining and told all my friends about it. Now the neighbor stopped giving out that candy. I showed him didn't I ?? I fixed that !!!
No more candy for your friends. ———–Wait a minute !! ———-No more candy for me either !!!
That is cutting off your nose to spite your face.