There are lots of other laws you’d have to worry about if you were trying to investigate somebody. Trespassing/breaking and entering for example.