If you know something privately about someone’s life, you cannot expose them. It would be sinful to do so. Yes, if you believe this person is about to harm others then you must take action to protect the others. If you know something about someone’s relationships, you should not expose them.