by the rules
idiomDefinition of by the rules
: in the way that is most common, expected, and acceptable
After years of boredom, he grew tired of living by the rules. She has always played by the rules throughout her career.