In all your cases, you wanted something from LE. The advice to stay shut is mainly for the other way around.
Also no, in the drug search example I just wanted to be left alone (and not have them find the small bag of weed). So I answered, but talked about harmless things.