If they told her not to do, she shouldn't do it.
Period.
When parents begin defending their children for deliberately breaking the rules they are not doing them any favors.
When I was in school we had to wear a belt if our pants had belt loops. It was a goofy rule but it was a rule and there was a penalty for disobeying it.
I can see a danger in a crowded lunchroom if one kid is doing cartwheels. If was eating I wouldn't appreciate it.
How many parents here would discourage their children from doing acrobatics in the kitchen during dinner?
I'd have scolded my child too. I hated it when they'd do cartwheels in our teensy little cabin when I was trying to teach grammar. har har