Not when that someone is the government or its representative. The act of asking can itself be a violation of your rights as there’s an implication that if you do not comply their may be some unknown ramifications.
Judges are savvy enough to know that threats need not be verbalized to be received.