act against

中高级 (B2) neutral

To do something that goes against a rule, person, or belief.

"The doctor warned that acting against medical advice could be dangerous."