Play by the rules

To follow the generally accepted rules of something.

The team members refused to play by the rules so they were asked to leave the tournament.