The bible says that mankind's sin is like a filthy rag before God, and before we can enter the kingdom of God, we need to be sanctified and washed in the blood of the lamb.
We however must always pray to God to avoid the temptation of sin so as to prevail over the urge to sin, and if we're still sinners God has the power to wroth redemption