The fact that the Bible called God's rest on the seventh-day a sabbath by using the hebrew word
shabath is all the prove I need.
Also, the Paul said that Adam "sinned."
Rom 5:12 ¶ Wherefore, as by one man sin entered into the world, and death by sin; and so death passed upon all men, for that all have sinned:
Rom 5:13 (For until the law sin was in the world: but sin is not imputed when there is no l
Rom 5:14 Nevertheless death reigned from Adam to Moses, even over them that had not sinned after the similitude of Adam's transgression, who is the figure of him that was to come.
The Bible says that "sin" is transgressing God's law.
1Jo 3:4 Whosoever committeth sin transgresseth also the law: for sin is the transgression of the law.
Lastly, the Bible says that where there is law there is sin and where there isn't law there is no sin.
Rom 3:20 Therefore by the deeds of the law there shall no flesh be justified in his sight: for by the law [is] the knowledge of sin.
If we honestly add all this up that 1) Adam sinned + 2) He transgressed the law + 3) had knowledge of sin then we can only logically conclude that Adam knew the law of God.