In a way that produces the opposite of the desired result or that prevents progress.
From counter- + productive (from Latin producere, to bring forth). Modern English formation from the 20th century describing actions with negative outcomes.
Psychologists discovered that trying harder NOT to think about something works counterproductively—your brain actually fixates on it more, which is why 'don't think of pink elephants' instantly gives you pink elephants.
Complete word intelligence in one call. Free tier — 50 lookups/day.