The definition of counterproductive is something that has the opposite of the intended affect or that goes against what you are trying to achieve.(adjective)
Behavior that gets you further away from a goal you are trying to reach instead of closer to that goal is an example of counterproductive behavior.
See counterproductive in Webster's New World College Dictionary
See counterproductive in American Heritage Dictionary 4
Learn more about counterproductive