Jesus clearly states the two laws on which the law and the prophets hang in Mark 12:30-31 (and elsewhere).
Law/Pearl 1: Love God (and the rules of God).
Law/Pearl 2: Love your neighbor as yourself.
The religious establishment at the time of Jesus emphasized law 1, "Love your God", but ignored law 2, "Love your neighbor as yourself" rule. This is, literally, "against the law" (of God).
According to Jesus, both rules are needed. What happens if the religious establishment ignores "Love your God" and emphasizes only "Love your neighbor" and often leaves out "as yourself"? This is, literally, "against the law" (of God)