Your opinion on cheating 🙊

I know that cheating is a big no-no but what if that person did it in order to get out of a dangerous toxic relationship. I'm not going to lie but I was in a bad relationship he was a renal  transplant patient and I was there with him through the good and bad at first I truly cared for him but in the end he treated me bad claiming that "i was worthless" and "good for nothing" but when I tried leaving he would basically throw a tantrum saying that he would stop taking his anti-rejection meds.. He would accuse me of cheating and I really couldn't hold a job b/c he start literally showing up to where I worked and would wait around an entire shift and a year before 2 years before we broke up he "proposed" to me and I never gave him an answer so he assumed that I said "yes".. he was somewhat abusive he would occasionally push me and yell when ever he didn't get his way.. A year later I graduated with my degree and started working at a hospital where I met my current boyfriend and yes I was still with my ex but at that point we where in bad terms and he was trying to "save" what was left but the think that the straw that broke the camels back was that he said "you will never be anything with that sh*t degree you have" & also I stopped having sex a year before with him because he was begging to do it unprotected.. at that point it was done Im not going to lie but I literally had urges to talk to other people, go out behind his back and that's what I did.. and for the first time I felt protected, safe, loved, appreciated, and respected.. Y E S i know what I did is wrong but I felt emotionally abused.. I couldn't be in that toxic relationship.. Was I in the wrong?