Here is the final way you can avoid being sinful!
#1 Replace Sin with Good
“Let him that stole steal no more: but rather let him labour, working with his hands the thing which is good, that he may have to give to him that needeth.” Ephesians 4:28

It is not enough to turn away from sin, you must turn to Christ. Turning to Christ in faith and love means doing His works. Jesus Himself warns that if you merely stop sinning in one area, sin will come back stronger in another area. Instead, figure out biblically what is the righteous replacement for the sin you are struggling with, and do it. Purposefully make it a priority to grow in that virtue. By replacing sin with righteousness, you leave no place for it to return.
Summary
These 10 ways to avoid sin are not some person’s idea, they are God’s advice. Take some time to evaluate how you can implement them in your life today. The 10 ways to avoid sin are:
#2 Confess to another Person
“Confess your faults one to another, and pray one for another, that ye may be healed. The effectual fervent prayer of a righteous man availeth much.” James 5:16

This might be the hardest way to avoid sin, but it is one of the most effective. Confessing to God is comparatively easy since He already knows. Confessing to another person is painful for our pride. Find someone who knows the Bible and loves God enough that they will not minimize your sin, and tell them what you have done or what you are struggling with, and ask them to help you. Then be honest with them. You will find that knowing you will have to tell someone if you sin is a huge deterrent when nothing else will stop you.
How one of these will help you avoid sin today?
Which 7 Successful Christians Have Changed the World?