There is a frequently used term having that meaning; it applies in particular to plans but it can be extended to situations involving plan-like schemes: "to backfire".
(Cambridge Dictionary) backfire (of a plan) to have the opposite result from the one you intended:
(OALD) backfire verb [intransitive] to have the opposite effect to the one intended, with bad or dangerous
(Backfired Magic: A Reverse Harem Paranormal Romance Steamy - Jade Alters · 2019) I did a stupid love spell, and it royally backfired. I don't know. But the guy I thought it would attract treated me like absolute dirt today.
(The Nation - Volume 178 - 1954 ) But one thing is clear : the hearings have backfired . Nearly everyone involved has suffered some damage , the temporary subcommittee perhaps even more than the parties themselves.
(Miscellaneous Publications: Including Issues of Fair Comment Fair Campaign Practices Committee · 1959)
- At least 16 clearly backfired , helping the candidate they were intended to harm
- Smears against Eisenhower were numerous and backfired decisively.
(Inner Views: Filmmakers In Conversation -
David Breskin · 1997) But it kind of backfired , because- Backfired ? How ? Because in some ways the white Southerners , who forced Christianity down the slaves ' throats , didn't realize that the personal empowerment Christianity gave the slaves led to a ...
(America: A Catholic Review of the Week - 1959) In fact, 55 per cent of the 1958 smears backfired, i.e., they helped elect the smeared candidate
(The Bulletin - 1989 ) But the NPA's ruthless efforts to enforce loyalty appear to have backfired . By all indications , most of the victims were not informers but loyal cadres , tortured and murdered in an epidemic of paranoia