南辕北辙

nányuán-běizhé
to act in a way that defeats one's purpose
HSK 79
Traditional南轅北轍

Additional Dictionary Meanings

to act in a way that defeats one's purpose (idiom)