That doesn’t sound like Shakespeare… it sounds more like one of Sir Thomas More’s lines from Robert Bolt’s play (later an Oscar-winning movie) “A Man for All Seasons.”
IF I’m right, the following dialogue is what you’re looking for:
=============================================
More’s daughter: “Father, that man’s bad.”
More: “There’s no law against that.”
Roper: “There is- God’s law.”
More: “Then let God arrest him.”
More’s wife: “While you talk, he’s gone.”
More: “And go he should, even if he were the Devil, until he broke the law.”
Roper: “So, now you give the Devil benefit of law?”
More: “Yes. What would YOU do? Cut a great road through the law, to get after the Devil?”
Roper: “Yes, I’d cut down every law in England to do that.”
More: "Oh? And when the last law was down, and the Devil turned round on you, where would you hide, Roper, the laws being all flat?
This country’s planted thick with laws, from coast to coast. Man’s laws, not God’s. And if you cut them down- and you’re just the man to do it- do you really think you could stand upright in the winds that would blow THEN?
Yes, I’d give the Devil benefit of law, for my own safety’s sake."
============================================