All who rely on ... the law are under a curse
Being under a curse represents being cursed. Here it refers to being punished. Alternate translation: "Those who rely on ... the law are cursed" or "God will punish those who rely on ... the law"
the works of the law
"obeying the law"