Here is how it works: it was through one individual that sin entered the world, and through sin, death; and in this way death passed through to the whole human race, inasmuch as everyone sinned.
Sin was indeed present in the world before Torah was given, but sin is not counted as such when there is no Torah.
Nevertheless death ruled from Adam until Moshe, even over those whose sinning was not exactly like Adam's violation of a direct command. In this, Adam prefigured the one who was to come.
But the free gift is not like the offence. For if, because of one man's offence, many died, then how much more has God's grace, that is, the gracious gift of one man, Yeshua the Messiah, overflowed to many!
No, the free gift is not like what resulted from one man's sinning; for from one sinner came judgment that brought condemnation; but the free gift came after many offences and brought acquittal.
For if, because of the offence of one man, death ruled through that one man; how much more will those receiving the overflowing grace, that is, the gift of being considered righteous, rule in life through the one man Yeshua the Messiah!
In other words, just as it was through one offence that all people came under condemnation, so also it is through one righteous act that all people come to be considered righteous.
For just as through the disobedience of the one man, many were made sinners, so also through the obedience of the other man, many will be made righteous.
And the Torah came into the picture so that the offence would proliferate; but where sin proliferated, grace proliferated even more.
All this happened so that just as sin ruled by means of death, so also grace might rule through causing people to be considered righteous, so that they might have eternal life, through Yeshua the Messiah, our Lord.