No one is a sage, and no one can make mistakes. If he can correct his mistakes, there is no greater good.
Repent for the evil in the past, change it, and refrain from committing sexual immorality (or even sexual immorality) from now on. If you are able, preach the harmful effects of sexual immorality to those who are destined to do so, so that they can also change their ways. I suggest you print some copies of "Desire" and give them to some people. This may save other people's families.
Some sexual immorality and sexual immorality must be abstained from for life. You should print some books to guide others in correctly handling gender relations, and persuade others to change their ways and run their own families well. "The prodigal son returns with nothing in exchange for gold." God will not blame those who repent. If you have time, you can also read the Ksitigarbha Sutra to keep your soul pure.