The tree of good and evil was in the middle of the garden of Eden. The tree of good and evil caused death to those who eat its fruit. The knowledge of good and evil refers to moral knowledge or ethical discernment. Adam and Eve possessed both life and moral discernment . The discernment was from God.
Their access to the fruit of the tree of life explains that God's will and intention for them was life. When Adam and Eve ate from the tree, Adam and Eve sought a source of discernment to understand to this point. They wanted to be morally independent from God.
We have death in this world. Everyone one will. Mankind have a sinful nature. Mankind deserve hell because we have sinned. We lie, we steal and many other sins. God will judge our sins, if we don't repent and have a new life.
We need a new heart that hates sin. The cross of Jesus is the key for our relationship with God. Jesus was the perfect sacrifice for mankind. Jesus lived a perfect life so He can transfer our sins to the cross. Then He conquered death. We need to desire the new life. Do you have a new heart in Jesus?
8 Now the Lord God had planted a garden in the east, in Eden; and there he put the man he had formed. 9 The Lord God made all kinds of trees grow out of the ground—trees that were pleasing to the eye and good for food. In the middle of the garden were the tree of life and the tree of the knowledge of good and evil.
10 A river watering the garden flowed from Eden; from there it was separated into four headwaters. 11 The name of the first is the Pishon; it winds through the entire land of Havilah, where there is gold. 12 (The gold of that land is good; aromatic resin and onyx are also there.) 13 The name of the second river is the Gihon; it winds through the entire land of Cush. 14 The name of the third river is the Tigris; it runs along the east side of Ashur. And the fourth river is the Euphrates.