Before Jesus came to this world, God had a covenant with the Jews. This Old covenant demanded man to live perfectly by obeying the whole law, and because NO ONE could keep the whole law, so they had to sacrifice animals to have their sins covered.
When covered, God couldn’t see the sins and thus blessed them. Clearly, this covenant was demanding. Man had to KEEP LAWS and SACRIFICE animals. What a lifestyle?!
James 2:10 says that if you break one law, you are guilty of all! In other words, the law wasn’t to be kept as different laws, it was one set to be kept perfectly. That’s why everyone failed.
Then came Jesus, he became man, went through all temptations like you do, but he didn’t sin. He had no sin! He was attracted to some bad things (that’s what temptations means) but he didn’t give in to the attraction. But then…he died! Why???;
I should die, because I fail. You should die! Why are you alive? Jesus was the lamb that was killed for your sins. And his blood didn’t just cover sins, it removed them!
Now you have no punishment to face, even if u break the law! Therefore there is no point of walking according to the law, because you will not be judged by it. That’s why the bible says we are not under the law!
For sin shall not have dominion over you: for ye are not under the law, but under grace.- Rom 6:14 (KJV)