"The Lord God put the man in the garden of Eden to care for it and work it. The Lord God commanded him, "You may eat the fruit from any tree in the garden, but you must not eat the fruit from the tree which gives the knowledge of good and evil. If you ever eat fruit from that tree you will die!" "
A good deterrent which was ignored. It makes sense that God should want to keep his people innocent, humans are much less cruel and careless as small children, until they pick up the bad habits surrounding them.