A little restriction to prevent bad actions.
Is this a riddle? The only thing that came to mind was leash, house arrest ankle bracelet (sorry that's how my crazy mind works) also laws, 10 commandments, rules.
"If men will not be governed by the Ten Commandments, they shall be governed by the ten thousand commandments" G.K. Chesterton
Not sure if this is what the riddle was if it was a riddle.