Telling him to be careful, having heard all the rumors, could have been good. I mean, if you don’t want a friend to suffer, you could at least say that much...obviously after that it’s his choice what to do.
Saying everything just to confess, trying to win him by saying in a roundabout way “she’ll deceive you”? Nope, totally wrong.