The problem is that this way of thinking concludes with “everyone is evil in the long run”.
This isn't exclusive to laws though anyhow. If you believe morality can be better tomorrow than today then you have to accept either being immoral today or only relatively moral to your own time.