There are many people who read the bible and believe that the laws and commandments that Moses received and was instructed to teach the Israelites were first given to Moses and never existed prior to the Israelites exiting Egypt. This concept is also what attributes to some people believing Moses in fact made the laws. Neither of these ideas are true. The theory behind it is, if the law does not predate Moses, then it had to have been established with him. And if the law does predate Moses, he could not have established it.
Let us first examine how Moses received the laws:
1 Esdras 1:6 Offer the passover in order, and make ready the sacrifices for your brethren, and keep the passover according to the commandment of the Lord, which was given unto Moses.
Josias informs the Levites to make ready the sacrifices needed for the Passover according to the Most High’s commandments, which was given to Moses, who then gave it to the Israelites. This shows you that this understanding was universal long after Moses had lived and died.
Exodus 24:3 And Moses came and told the people all the words of the LORD, and all the judgments: and all the people answered with one voice, and said, All the words which the LORD hath said will we do.
The Most High told Moses what to tell the Israelites. Moses told the Israelites about the commandments. He also told them about the judgments and consequences for breaking those commandments. Keep in mind that the Israelites did not want to deal with the Most High when they saw the lightning and heard the thunder, but rather, preferred if Moses spake unto them. Deuteronomy 20:18-21
All this was done to prove the Israelites and to establish the fear, or the respect needed in order to keep them from breaking the law. This same concept can be applied to a parent and child relationship. Think about when you were young, what kept you from doing whatever you wanted? Most likely it was the second thought of what your parent(s) would do or how they would react upon finding out whatever you did wrong, or the offence you made. As a parent you understand that your children must have a certain level of fear of you as there authoritative figure, otherwise they will most likely not respect you. And if children don’t respect their parents, they will most likely have no regard for any other authoritative figure.
Now let us examine the history of the law prior to Moses:
When God first made man:
Genesis 1:27-28  So God created man in his own image, in the image of God created he him; male and female created he them.  And God blessed them, and God said unto them, Be fruitful, and multiply, and replenish the earth, and subdue it: and have dominion over the fish of the sea, and over the fowl of the air, and over every living thing that moveth upon the earth.
On the sixth day the Most High made man, mankind, human beings. This is why when you read Genesis 4:14-17 Cain informs the Most High that everyone that finds him will kill him, and shortly after he even finds a wife, marries, and has children. The Most High told or commanded man to be fruitful and multiply, and subdue the earth and all other creatures. Showing you, that since the beginning of time man was made to rule. But now, let us examine the man the Most High formed to be the leader of the people first formed, known as Adam.
When God made Adam and Eve:
Genesis 2:16 And the LORD God commanded the man, saying, Of every tree of the garden thou mayest freely eat:
Once again the Most High commanded the man. Let us look at the definition of command using the merriam Webster dictionary:
Definition of COMMAND
: to direct authoritatively : order
: to exercise a dominating influence over : have command of: as
: to order or request to be given
: to have or exercise direct authority : govern
: to give orders
: to dominate as if from an elevated place
Adam was given commandments, things to do and not to do. So much so, that he was even given the judgment of breaking those commandments. But you have some that still need more sufficient evidence to solidify this. Let us examine a few notable figures and events that predate Moses.
Cain and Abel:
Genesis 4:7 If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto thee shall be his desire, and thou shalt rule over him.
Notice the Most High told Cain if he chose to do well he would be accepted. But if he chose not to do well, not to do the right thing, sin lieth at the door. Well what is sin?
1 John 3:4 Whosoever committeth sin transgresseth also the law: for sin is the transgression of the law.
So sin is the transgression or breaking of the law. If you break the law you commit a sin. So how would Cain be able to commit a sin if in fact sin did not exist because the laws did not exist? There would have been nothing for him to break.
Genesis 7:1-2  And the LORD said unto Noah, Come thou and all thy house into the ark; for thee have I seen righteous before me in this generation.  Of every clean beast thou shalt take to thee by sevens, the male and his female: and of beasts that are not clean by two, the male and his female.
Do you notice the distinction in the animals Noah was commanded to bring into the ark? Clean beast were to be taken by sevens and unclean beast were to be taken by two, why?
Leviticus 11:47 To make a difference between the unclean and the clean, and between the beast that may be eaten and the beast that may not be eaten.
There are a few reasons as to why a larger number of clean animals were needed. One was of course the ability to reproduce which is why a minimum of two of each animal was required, one male and one female. A second reason was so you could have a food source for both Noah and his family, as well as the other animals on the ark that eat meat. Another was to make sacrifices, since only clean animals could be used.
Genesis 8:20 And Noah builded an altar unto the LORD; and took of every clean beast, and of every clean fowl, and offered burnt offerings on the altar.
Noah built an alter and offered sacrifices according to the law.
Exodus 20:24 An altar of earth thou shalt make unto me, and shalt sacrifice thereon thy burnt offerings, and thy peace offerings, thy sheep, and thine oxen: in all places where I record my name I will come unto thee, and I will bless thee.
Let us examine a little more concerning Noah, primarily why he was chosen and preserved.
Genesis 7:1 And the LORD said unto Noah, Come thou and all thy house into the ark; for thee have I seen righteous before me in this generation.
Noah was a righteous man, a precept for that is Ecclesiasticus 44:17. But what makes someone righteous? How do we become righteous? Simple, look at the prefix or root of righteous, you get the word right. So in essence, by simply doing the right thing, but according to what or who’s standard? Now you have to find out what the right thing to do is.
Deuteronomy 6:25 And it shall be our righteousness, if we observe to do all these commandments before the LORD our God, as he hath commanded us.
If you want to obtain righteousness, you must keep the law and do the things the Most High told us to do. So how was Noah righteous? He kept the law without partiality.
Genesis 26:5 Because that Abraham obeyed my voice, and kept my charge, my commandments, my statutes, and my laws.
Abraham obeyed the Most High and kept his laws and commandments. As you read the generations and chronology of births in Genesis, from Adam, to Noah, to Abraham, to Jacob, you will see that the Most High always recorded and followed the righteous men who kept the laws. These same laws were passed down and then reintroduced to the children of Israel from The Most High by Moses, and were neither created by Moses or first established with him.
Even Feast Days were kept prior to Moses
Genesis 4:3 ¶ And in process of time it came to pass, that Cain brought of the fruit of the ground an offering unto the LORD.
Genesis 4:4 And Abel, he also brought of the firstlings of his flock and of the fat thereof. And the LORD had respect unto Abel and to his offering:
Numbers 18:12 All the best of the oil, and all the best of the wine, and of the wheat, the firstfruits of them which they shall offer unto the LORD, them have I given thee.
The Sabbath Day
Exodus 20:8-10 Remember the sabbath day, to keep it holy. Six days shalt thou labour, and do all thy work: But the seventh day is the sabbath of the LORD thy God: in it thou shalt not do any work, thou, nor thy son, nor thy daughter, thy manservant, nor thy maidservant, nor thy cattle, nor thy stranger that is within thy gates:
Genesis 2:3 And God blessed the seventh day, and sanctified it: because that in it he had rested from all his work which God created and made.
Genesis 20:3 ¶ But God came to Abimelech in a dream by night, and said to him, Behold, thou art but a dead man, for the woman which thou hast taken; for she is a man’s wife.
Exodus 20:14 Thou shalt not commit adultery.
Leviticus 18:20 Moreover thou shalt not lie carnally with thy neighbour’s wife, to defile thyself with her.
We see that there are many accounts to prove that the laws were given to man BEFORE the time of Moses. The commandments are the commandments of God and not man.
2 Maccabees 6:23 But he began to consider discreetly, and as became his age, and the excellency of his ancient years, and the honour of his gray head, whereon was come, and his most honest education from a child, or rather the holy law made and given by God: therefore he answered accordingly, and willed them straightways to send him to the grave.