It's understandable that you would feel angry and hurt after being lied to and mistreated by someone you liked. However, it's important to consider the long-term implications of your actions before making a decision that could impact the relationship and the other person's life.
In this case, it sounds like you and the person you liked had been communicating with each other for a month before she revealed that she was still in love with another man. During that time, she had been treating you like junk and making it clear that she wasn't interested in pursuing a relationship with you.
When she finally confessed that she was betraying another man by becoming closer to you, it's understandable that you would feel angry and want to end the relationship immediately. However, it's important to consider the other person's feelings and the potential consequences of your actions.
If you had just ended things abruptly without giving her a chance to explain herself, it's possible that she would have been hurt and confused, and it's not clear if the other man would have found out or not. Additionally, if you had blocked her on all platforms, it's possible that she would have felt like you were trying to control her and that could have caused her to feel even more uncomfortable.
Instead, you could have had a conversation with her and given her a chance to explain herself. You could have also agreed to take a break from communication while she sorted out her feelings and the situation with the other man. This would have given her space, but also allowed you to have some closure and a chance to process your feelings.
Ultimately, it's important to remember that communication is key in any relationship, and that it's important to give the other person a chance to explain themselves and understand your perspective. It's also important to consider the long-term implications of your actions and the impact they could have on both you and the other person.