Even walking on a flat roof poses a risk of damaging the waterproof membrane. Slamming skateboard wheels/edges into the roof surface has got to be an order of magnitude worse.
Skateboarding isn’t a crime. But causing expensive damage to buildings? Yeah, that’s a crime.