We all make mistakes, and will do so until we are called home to glory.
We can never be righteous in our own strength, but we can be through our Lord and Savior. As a matter of fact, we are perfect in Jesus Christ, who made us perfect.
II Corinthians 5:21 (KJV) – for he hath made him to be sin for us, who knew no sin; that we might be made the righteousness of God in him.
Colossians 1:28 (KJV) – whom we preach, warning every man, and teaching every man in all wisdom; that we may present every man perfect in Christ Jesus.
I Peter 5:10 (KJV) – but the God of all grace, who hath called us unto his eternal glory by Christ Jesus, after that ye have suffered a while, make you perfect, stablish, strengthen, settle you.