Great question — answering as the UphillTech team:
I don't believe there is anything in the Laws of the Game (most likely Law 12.3 "Disciplinary Action" ) which would specifically forbid this; Law 12.3 does include the catch-all allowing a player to be cautioned if they "show a lack of respect for the game" which a referee could use if they felt it necessary. That said, the rules for sports in general don't need to include things forbidding behaviour which is likely to result to degrade a team/player's performance because there's no need for it unless people are being deliberately silly - in which case the "lack of respect for the game" clause does come into play.
Full answer by Philip Kendall: https://sports.stackexchange.com/a/28561 (CC BY-SA 4.0).
Need it done for your business? UphillTech.