We were not created to be robots. God designed us to have a free will, giving us the ability to choose Him or not.
Adam’s choice was catastrophic in scope as we inherited all of its consequences. It caused everything that’s wrong with the world we live in.
Now the serpent was more crafty than any of the wild animals the Lord God had made. He said to the woman, “Did God really say, ‘You must not eat from any tree in the garden’?”
The woman said to the serpent, “We may eat fruit from the trees in the garden, but God did say, ‘You must not eat fruit from the tree that is in the middle of the garden, and you must not touch it, or you will die.”
“You will not certainly die,” the serpent said to the woman. “For God knows that when you eat from it your eyes will be opened, and you will be like God, knowing good and evil.”
When the woman saw that the fruit of the tree was good for food and pleasing to the eye, and also desirable for gaining wisdom, she took some and ate it. She also gave some to her husband, who was with her, and he ate it. Then the eyes of both of them were opened, and they realized they were naked; so they sewed fig leaves together and made coverings for themselves.
– Genesis 3:1-7 NIV
And to the man he said, “Since you listened to your wife and ate from the tree whose fruit I commanded you not to eat, the ground is cursed because of you. All your life you will struggle to scratch a living from it. It will grow thorns and thistles for you, though you will eat of its grains. By the sweat of your brow will you have food to eat until you return to the ground from which you were made. For you were made from dust, and to dust you will return.” Then the man – Adam – named his wife Eve, because she would be the mother of all who live.
– Genesis 3:17-20 NLT