Adam the sinner furthered the purposes of God to the same degree as Adam the righteous... What Adam aimed to do and what Adam actually managed to do are not the same. In a different way, but in the same degree, Adam carried forward the purpose of God. Adam’s act was sinful because he did not aim to please God. His motive was wrong, and God judged him for it. But God meant to use even that evil to advance His own glory.
Tom Wells