It is legal to participate in protest demonstrations, but the police can arrest you for protesting in places and at times when demonstrations are not allowed, as well as for engaging in illegal actions such as theft, vandalism, or assault during a protest.