It is important to remember that the police has an adversarial relationship to you. Their job is to look for reasons to arrest you. Asserting your rights or looking suspicious is not a crime.
> Above all, stay calm, friendly, and respectful, all while standing firm.
This advice cannot be repeated enough. Most of us deal with the police so infrequently that, in that adversarial context, we have very little practice on how to do it effectively. Worse yet, asserting your rights appears to violate many of the social strictures on not being rude and respecting authority. Quoting Sen no Rikyu, "that must be set aside".