反其道而行之

fǎndàoérxíngzhī
  1. to do the very opposite
  2. to act in a diametrically opposite way

CEDICT

to do just the opposite; to act in a diametrically opposite way

Wiktionary

Entry Composition