Do we have a word to describe the situation when someone wants to achieve something, but plans and takes the way which would take him to a different result.
For example, a person might want to have a better relationship with others, and as a plan, starts joking, by which others get offended and the first goal won't be met.
Or when a company wants to make a fast car, but because of high-speed ans stability, increases the weight of the car, which in turn reduces the overall speed.
In Arabic, I think it's called "نقض غرض", literally translated means "aim violation" or "aim reversal".
Do we have anything for this in English?