南轅北轍

Etymology
From a story in :

Idiom

 * 1) to be counterproductive; to run counter to; to work at cross-purposes; to sabotage your own progress; to go off in the wrong direction