In Instruments in the Redeemer's Hands, Paul Tripp says, "We forget that the only hope the principles offer rests on the Person, Jesus Christ. And we forget that the Bible is not an encyclopedia, but a story of God's plan to rescue hopeless and helpless humanity. It's a story about people who are rescued from their own self-sufficiency and wisdom and transported to a kingdom where Jesus is central and true hope is alive. We cannot treat the Bible as a collection of therapeutic insights. To do so distorts its message and will not lead to lasting change. If a system could give us what we need, Jesus would never have come. But he came because what was wrong with us could not be fixed any other way. He is the only answer, so we must never offer a message that is less than the good news. We don't offer people a system; we point them to a Redeemer. He is hope."
So the gospel and redemption come first before we even bother trying to live a pure life.