That's not how it works. The law cannot legislate perfection. There is the substance of the law itself then there is the spirit of the law. For example, highway signs have a speed limit, e.g. "60 MPH". The purpose of the law is safety, but the signs don't say "drive safely". Same applies here, a person can technically not violate any of the rules of the Sabbath and still not be in line with the "spirit" of it. From the standpoint of what you call the "afterlife", there's no difference. This same idea applies to all the laws, as Nachmanides (1194–1270) explains, there is an idea of "someone who is digusting/perverse within the framework of the laws" (hard to translate from the Hebrew) - the idea being that it's possible to not violate any of the laws from a technical standpoint, but still be a terrible person. It's not a game in the way you describe it, it's simply the feature of legal systems, namely that perfection cannot itself be legislated even if it is the purpose of the law.