You need to learn that it is not your responsibility to look after random people. If you're ever asking if telling someone they're being cheated on is a good idea, the answer is no. It will always cause you drama. Always!
So you only do this when you are willing to lose the friend and it's absolutely worth the drama.