God make man perfect with free rather than robotic tendencies.
De 32:4 The Rock, perfect is his activity, For all his ways are justice. A God of faithfulness who is never unjust; Righteous and upright is he.
He gave a simple command. It was not difficult to keep. This was only for man to accept his authority and ruler. He had already given them everything they could ever want.
Genesis 2:7 And Jehovah God went on to form the man out of dust+ from the ground and to blow into his nostrils the breath of life,+ and the man became a living person.*+ 8 Further, Jehovah God planted a garden in Eʹden,+ toward the east; and there he put the man whom he had formed.+ 9 Thus Jehovah God made to grow out of the ground every tree that was pleasing to look at and good for food and also the tree of life+ in the middle of the garden and the tree of the knowledge of good and bad.+
10 Now there was a river flowing out of Eʹden to water the garden, and from there it divided into four rivers.* 11 The name of the first is Piʹshon; it is the one encircling the entire land of Havʹi·lah, where there is gold. 12 The gold of that land is good. Bdellium gum and onyx stone are also there. 13 The name of the second river is Giʹhon; it is the one encircling the entire land of Cush. 14 The name of the third river is Hidʹde·kel;*+ it is the one going to the east of As·syrʹi·a.+ And the fourth river is the Eu·phraʹtes.+
15 Jehovah God took the man and settled him in the garden of Eʹden to cultivate it and to take care of it.+ 16 Jehovah God also gave this command to the man: “From every tree of the garden you may eat to satisfaction.+ 17 But as for the tree of the knowledge of good and bad, you must not eat from it, for in the day you eat from it you will certainly die.”+
18 Then Jehovah God said: “It is not good for the man to continue to be alone. I am going to make a helper for him, as a complement of him.”
Eating from the forbidden tree was no mistake. The serpent made the tree appealing by stating that Eve would like God.
Genesis 2:7 And Jehovah God went on to form the man out of dust+ from the ground and to blow into his nostrils the breath of life,+ and the man became a living person.*+ 8 Further, Jehovah God planted a garden in Eʹden,+ toward the east; and there he put the man whom he had formed.+ 9 Thus Jehovah God made to grow out of the ground every tree that was pleasing to look at and good for food and also the tree of life+ in the middle of the garden and the tree of the knowledge of good and bad.+
10 Now there was a river flowing out of Eʹden to water the garden, and from there it divided into four rivers.* 11 The name of the first is Piʹshon; it is the one encircling the entire land of Havʹi·lah, where there is gold. 12 The gold of that land is good. Bdellium gum and onyx stone are also there. 13 The name of the second river is Giʹhon; it is the one encircling the entire land of Cush. 14 The name of the third river is Hidʹde·kel;*+ it is the one going to the east of As·syrʹi·a.+ And the fourth river is the Eu·phraʹtes.+
15 Jehovah God took the man and settled him in the garden of Eʹden to cultivate it and to take care of it.+ 16 Jehovah God also gave this command to the man: “From every tree of the garden you may eat to satisfaction.+ 17 But as for the tree of the knowledge of good and bad, you must not eat from it, for in the day you eat from it you will certainly die.”+
18 Then Jehovah God said: “It is not good for the man to continue to be alone. I am going to make a helper for him, as a complement of him.”+
Genesis 3:1 Now the serpent+ was the most cautious* of all the wild animals of the field that Jehovah God had made. So it said to the woman: “Did God really say that you must not eat from every tree of the garden?”+ 2 At this the woman said to the serpent: “We may eat of the fruit of the trees of the garden.+ 3 But God has said about the fruit of the tree that is in the middle of the garden:+ ‘You must not eat from it, no, you must not touch it; otherwise you will die.’” 4 At this the serpent said to the woman: “You certainly will not die.+ 5 For God knows that in the very day you eat from it, your eyes will be opened and you will be like God, knowing good and bad.”+
6 Consequently, the woman saw that the tree was good for food and that it was something desirable to the eyes, yes, the tree was pleasing to look at. So she began taking of its fruit and eating it.+ Afterward, she also gave some to her husband when he was with her, and he began eating it.+
De 32:5 They are the ones who have acted corruptly.