When you get stuck in the works-based-salvation rut (which you can get stuck in pre-salvation and post-salvation, by the way), open up your Bible and see what God has to say about it. It's true that the Bible contains God's commands. But it's not true that you must keep all of those commands to become (or stay) saved. Read the book of Romans if you don't believe me. You'll discover that He was, is, and will be better than we ever could be.