In this case I think the ages are a distraction. This is clearly a violation of the constitution even given Covid due to it essentially banning a large section of the population from something as fundamental as visiting friends.
You've heard of this pandemic thing going on though, right? Perhaps they should have not put an age restriction on.
If you want people to follow rules, you have to be consistent in how those rules are applied.