Why is the law a curse? Because if you're going to try to earn God's favor through keeping rules and regulations, you've got to do it all.
Suppose you are one of the thousands of refugees who are presently making their way to America via raft. You carefully construct your little boat, using ten boards to make up the hull. Then you set sail. Thirty miles out to sea, one of the boards comes loose and floats away. The water comes flooding in, and you go downbecause in that situation, even 90 percent isn't good enough.
The same is true with regard to the Ten Commandments. If you're going to try to earn God's favor through keeping them, you'll have to keep all ten. or else you're lunch for some hungry shark. Jesus gave us an understanding of what this really means when He said, "You've heard it said of old you're not to commit adultery, but I say unto you if you have lust in your heart you're guilty. You've heard it said of old you're not to commit murder, but I say if you've been angry with someone you're guilty" (see Matthew 5). You're cursed if you try to keep the law because unless you keep all of it perfectly, you're sunk.