If you had several devils cast out of you there is a good possibility you were commiting sin. Devils don’t help you to live right.
Scripture never says that Mary Magdalene was a prostitute or adulteress.
Those are religious myths.
We all commit sins.