yes, dude fukked up by riding on the sidewalk, lol.
however, for something such as this to escalate to the level of getting nightsticks to the dome over and over again should not be tolerated.
the police do have a responsibility to control the situation without further aggravation and escalation (this is what being a professional is all about).
yes, dude resisted arrest and fukked up even further.
however, the police fukked up by not sufficiently handling the situation early and let it get worse - because they were not physically equipped to do the job properly. a stronger, more able bodied officer would've subdued the guy quicker without letting the situation get out of hand, thus, decreasing the chance of injury not only to the officers and bystanders, but to the assailant himself.