"I walk in the way of righteousness, in the midst of the paths of justice" (Proverbs 8:20). The Torah says: on which path am I to be found? On the road of those who do righteousness. "In the midst of the paths of justice" (Proverbs 8:20). Rabbi Huna said: like the armed escort of a noblewoman, when she passes through the marketplace there is sword and weapon before her and sword and weapon behind her. So it is with the Torah: there are laws before it and laws behind it. Laws before it, "There He set for them a statute and an ordinance" (Exodus 15:25). And laws behind it, "And these are the ordinances that you shall set before them" (Exodus 21:1).
Torah Walks the Path of the Righteous Guarded by Law
Pesikta DeRav Kahana 12:8
[ח] בארח צדקה אהלך בתוך נתיבות משפט (משלי ח:כ). התורה אומרת באיזה שביל אני מצויה, בדירכן של עושי צדקה. בתוך נתיבות משפט, א"ר חונא לאיסקופיסטי של מטרונא לכשהיא עוברת בשוק משמטין סייף וזיין מלפניה וסייף וזיין מאחריה. כך היא התורה, דינים מלפניה ודינים מאחריה. דינים מלפניה, שם שם לו חק ומשפט (שמות טו:כה). ודינים מאחריה, ואלה המשפטים אשר תשים לפניהם (שם כא:א).