There are many more natural ways to phrase it: By accepting the money, she was violating / disobeying / breaking / contravening / [at odds with] / [not complying with] company regulations.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.