Just comply instead of being an asshole back to them. When they try to book you for trespassing, you can say that you were unaware that you weren’t allowed to be there and thought the hours were xx AM - xx PM. It’s only trespassing if you knew you weren’t supposed to be there. Then, it would get tossed out in court and you can sue for being detained illegally in civil court, especially if it’s in a skatepark (and no laws were actually broken).
I’ve been handcuffed once, stopped multiple times, but never arrested for just skateboarding. Once you start arguing and making a scene by being a whiny bitch, you’re getting booked. Stay calm and speak when spoken to, instead of acting on impulse.
I’ve been dealing with cops kicking me out of spots for 10-15 years, and most scenarios consisted of weird, friendly, small talk, especially during out-of-state trips. You just leave when they tell you to so you don’t end up on YouTube/Instagram.