The correct answer is:
The law is a means to justice.
People obey the law because they believe is aligned with their social sense of justice. The law is not an end in itself, but solely a means to reach justice. When this connection between law and justice is forgotten, the laws themselves are bound to become a device of injustice.