Fetching details from the dictionary...

to go against; to act contrary to; to run counter to; to deviate from
人の道にもとる行為は許されない。
Actions that go against human decency are unacceptable.
その行為は道義にもとった。
That conduct went against moral principles.
彼の発言は常識にもとっている。
His remarks run counter to common sense.