"If your rights are violated you deal with it later"
What exactly do you gain by consenting to an illegal request of a power they do not have?
Not get killed? Live for another day where you can fight for legal remedy, and hopefully create a legal precedent that will prevent such violations in the future?
Subservience only reinforces their grandstanding and power playing.
This is all bravado from your part. Until you have actually dealt with situations like that, face to face, you ought to temper it and think a little.
There are moments in life when it is appropriate to disobey a law and deal with the consequences (see Rosa Park or Gandhi, or recently Arnold Abbott).
This is specially true if violations of your rights (or your "violation" of an unjust law) is done in public, to bring awareness to a just cause. This is particularly true when violations are the manifestation of egregious institutions (colonialism, institutionalized racism, to less diabolical but still egregious ones such as laws preventing feeding of homeless.
Here, you, the generic "you", are full aware of it, and you have a made a decision to take the hit for a greater cause.
On the other hand, there are times to play possum, in particular if violation of your rights just happen because you are there on the wrong time, being incidental of you just being you, without you planning to take the hit for a greater cause.
You coming from an event and getting arrested because "you" look the profile, or getting handcuffed while picking up your kids because you look suspicious, even when teachers are vouching for you. Etc, etc.
In such cases when you are just living your daily life, play possum, litigate later. This is specially true when you have family that depends on you.
Telling other people to go martyr just because it sounds good and right, that's just unhelpful bravado. This has nothing to do with doing the right thing, but everything to do with making a post where you sound brave and rightful.
Ignorance of the law on the side of the police is not an excuse, just as ignorance of law among a civilian is no excuse.
None of that justifies telling other people to escalate things when in a position of vulnerability. This is not a comic book, and you are not GI Joe.
Learn to pick your battles, and you pick them, learn how to fight and win them.