That actually has been the law in the US (not sure whether it still is). There was a case where someone lived next door to a dealer, and customers were frequently knocking on this person's door mistakenly. One time it was an undercover cop, and the resident said "wrong door, the dealer is over there", and was arrested and prosecuted.