Fetching details from the dictionary...

to go against; to act contrary to; to run counter to; to deviate from
彼の行動は常識に悖っている。
His behavior goes against common sense.
約束にもとるようなことはしない。
I won't do anything that goes against our agreement.
道徳にもとる行為は許されない。
Actions that go against morality are not permitted.