"Counterproductive" means doing something that actually hampers or goes against achieving a desired goal or outcome. In simple terms, it means doing something that makes things worse instead of better. Full definition
It must be perceived as counterproductive in its own time, a feasible alternative course of action must be available, and the policy must persist beyond any one political term or lifetime. (grist.org)
For these and other reasons, I argued last time that the Kyoto approach to climate change — through the setting of targets — could prove to be like the League of Nations approach to preserving peace: idealistic and visionary yet impractical, ultimately ineffective and perhaps even counterproductive because of the valuable political capital it consumes. (ft.com)