It's not a crime. It's a prohibited act by private and public property owners because of insurance liabilities. If you do something stupid and hurt yourself on someone else's property, they are legally responsible. By prohibiting it they lessen the chance a judge would side with the violator (though technically they are usually still liable).
The crime isn't in skateboarding, it's in trespassing and performing prohibited acts on private property.