Not even a good analogy when it comes to technology. Standing close to the door could be considered illegal and even if you had the legal right to entire anything you would find could be inadmissible.
No, the analogy is breaking a rule in "good faith". It's absurd. Regular citizens can't do that. Ignorance of the law or "good intentions" isn't a defense for a normal person.