My take on the matter (which is largely due to having read the Tao Te Ching, btw) is that law isn't useful in making a society better in any significant way.
Ultimately, what makes a society better is an increase in good will and cooperation among its citizens. Laws are a very ill fit indeed for such a goal, because they coerce people instead of captivating them. To a significant extent they do in fact create problems because they ensure certain advantages who those who know or learn how to take unfair advantage of them.
As the controversies about matters such as gun control, drug use, immigration and abortion and marriage rights show, there is definitely a downside in having legislation in place before actual agreement and mutual understanding is reached. Unfortunately, there is also an odd tendency to think of legislation as some sort of weapon. That is certain to backfire.
In a better society, laws would be very temporary and largely redundant, little more than a formality.