Indeed the opposite tendency is sometimes evidence: when society or the economy changes, ways of acting that used to work most of the time now may no longer work at all.
Meanwhile, the old and obsolete laws collect dust, waiting to spring back to life for all the wrong reasons, sometimes to enforce precisely the opposite result to what well-meaning supporters hoped to achieve.