You are mess of contradiction. Out one side of your mouth righteousness means perfection, then out the other side of your mouth it's consistency. The latter is correct. Forget this 100% perfection crap. Just prepare to respond to your next temptation to obey the flesh in the perfect way of the Spirit. If you don't, learn from it and try again next time. Stop trying to maintain this 4.0 GPA that you think you have to have to be saved when Christ returns! You lost that chance a long time ago! The moment you committed your first sin after receiving Christ in salvation.
Receiving the perfect righteousness of God does not mean you are now perfectly sinless in behavior. It means you have been absolved of all sin guilt in the eyes of God and are, therefore, righteous in his sight that way. Your behavior will catch up with what God has declared you to be as you mature in the faith and learn, more and more, how to walk in the righteousness that has been seeded in you via the Holy Spirit.