南辕北辙 (nán yuán běi zhé): to act in a way that defeats one's purpose

nányuánběizhé

to act in a way that defeats one's purpose

Driving north to reach a place in the south, and priding yourself on good horses. For effort that makes a wrong direction worse.