According to the Law. The same Law Adam and Eve were under when they sinned. Just because he did not tells us what the Law was does not mean there was no Law or Adam and Eve would not be sinners.
God then changed their Law to the Noahide Law. Then he changed that to Moses Law. Now a change in Moses for a different priestly duty. Finally 1 more covenant after Jesus 2nd coming.
LB