It's called probable cause and it's recognized by the courts in any other police interaction except for checkpoints.
And it's backed by the 4th Amendment, which is neither a law nor a rule. It's an acknowledgment of an innate natural right that all human beings have which includes the right to be left alone except when there's reasonable suspicion or probable cause.