It was possible for Adam, before the fall, to form a righteous character by obedience to God's law. But he failed to do this, and because of his sin our natures are fallen and we cannot make ourselves righteous. Since we are sinful, unholy, we cannot perfectly obey the holy law. We have no righteousness of our own with which to meet the claims of the law of God. But Christ has made a way of escape for us. He lived on earth amid trials and temptations such as we have to meet. He lived a sinless life. He died for us, and now He offers to take our sins and give us His righteousness. If you give yourself to Him, and accept Him as your Saviour, then, sinful as your life may have been, for His sake you are accounted righteous. Christ's character stands in place of your character, and you are accepted before God just as if you had not sinned.
Go on to sc62.3...
White, Ellen Gould: Steps to Christ. Pacific Press Publishing Association, 1892; SC 62.2
From The Test of Discipleship