Same in the US.
But, people are required to obey police commands, unlawful or not, and then seek remedy from the courts afterwards.
And, there is usually a narrow self-defense exception. One can lawfully resist if the police are unlawfully trying to kill you.