Read The Handbook of Marriage, Divorce, Remarriage, and Adultery.
Research your own marital history and that of your mate(s).
Desperately seek the Lord Jesus and His Holy Spirit to enable you to apply Scripture to lead you into sexual purity--and expect God to help you!