Spying, in general, can be considered a crime, as the suspect may discover personal information without consent and can use it against the target. But there is an exception if you are spying on a family member like your kids and spouse, for the purpose of safety and marital concerns.