Start by not shooting at them, especially when the protest is legal.
Escalation is the big problem here, nobody is complaining about using rubber bullet against dangerous armed people. They're complaining about using rubber bullet against people in a non-violent protest. If the police is using significantly more force than their "targets", there's an escalation problem