Am I a bad person?

I cheated on my S/O with my ex.. But I didn't want to, does that make me a bad person..? My ex has been harassing me and I just told my S/O that I cheated.. I can't stop crying and I dot know what to do.. I need some advice..