Lately, the sheer number of posts which explicitly and implicitly state that Jesus saves only those who keep the law has been astounding. Most of those claiming such don't claim moral perfection, but quite frankly, I would have less of a problem with them if they did, because there is no such animal as imperfect obedience.
Does God accept "imperfect obedience"?
Does Christ save only those who obey the law?
I would say no, God does not accept imperfect obedience - hence, John 3-16 (ESV) "For God so loved the world, that he gave his only Son, that whoever believes in him should not perish but have eternal life."
We are saved (justified) when we accept Jesus as our Lord and Savior, placing our trust in Him for our salvation. At the moment of our salvation, we then spend the rest of our lives being made into the likeness of Christ (sanctification) at which time we are brought into glorification when we stand before the Lord. So the steps/stages/phases of salvation are (1) justification, (2) sanctification, and (3) glorification.
The analogy I've heard is to imagine we are drowning out in the middle of a lake/ocean (like drowning in our sin). A rescue boat (Jesus) comes by and trows us a life saver. At that moment we are saved (justified). Now we're still out on the water, just no longer drowning. As the boat is going in to shore we are 'being saved' still (sanctification), right? Finally, as the boat arrives at shore, we are "saved" (glorification), yet now in all respects.
Why I mention all this is to illustrate that sanctification is not once-and-done as is justification... remember, we are not made fully like Christ until we stand before Him (when we are glorified). As such, we can conclude that until that moment occurs, we are imperfect (we are not without sin nor are we perfect in our obedience)... though we are progressively becoming more like Christ along the way.