My Y1 child struggles with the concept that somebody could be sent to prison who isn't a 'baddie'.
So to teach as pumpkin suggests would create confusion and would necessitate discussions about how the authorities, although they make the rules, can be wrong and make wrong rules, and that sometimes the 'good' thing to do is to break the rules or even fight against them. (Hence being 'good' can get you into prison)
That you have to know for yourself what is good and right (rather than being told by, say, the law) and if the rules are wrong, you need to weigh up if it is bad enough to make you need to do something about it, or if it is a 'pick your battles' situation and you go along with it for the sake of peace.
And all this would of course be very relevant to a school child who is constantly dealing with rules, which are often arbitrary and may at times cause unnecessary suffering to themselves or to their friends.
So I would effectively be asking my child to not follow school rules when they feel wrong, except maybe sometimes it's better to follow them nonetheless.
Although I strongly want to encourage my child to have their own mind, I think this is a bit much to ask from a 5yo, so I agree with you OP. Purely from the perspective of teaching about civil resistance.