Did I overstep? (Sorry had to post it again)?

okay so I posted this but just the title and it won’t let me fruit so please disregard it! Okay so here’s the thing an old friend from high school is having an issue. I’ve known him since 7th grade. We never had anything. We were just friends. I ran into him 2 years ago, we said hi. That’s it. We never really messaged. I mean here and there. But he recently reached out to me. He wasn’t like him, he seemed out of it. Like broken. He was forcing it. All we did was message eachother. He finally admitted he caught his wife cheating on him for 5 years with the same guy, and his 2nd and current baby on the way might not be his. He’s a mess, just venting about how he found out. His wife’s sister knows and now so do I. I guess we are the only people that know. Been trying to cheer him up distracting him asking him about his card games that’s like dungeons and dragons etc. nothing else. He’ll vent here and there about what his wife is doing. I just listen. She’s left the house and took his girls recently. He told her she won’t be getting anything from him anymore unless it’s for his girls. Now she sent me friend request because she think something is going on between us. It’s not. He’s showed me the messages of them talking about me, she thinks he’s being malice by messaging me. I don’t want her thinking I’m trying anything. Am I overstepping? He says we’ll stop messaging till he gets it together. But I feel bad he’s gotta deal with it. I mean he just told me he met the guy. She had him shake the guys hand twice the guy works with her. And I’m a girl I’d think the worse case scenario if it was the other way around, I’d be like oh she’s one of those girls. Ya know? Did I overstep?

Did I overstep? (Sorry had to post it again)?
Post Opinion