Nicolaou -Incorrect. You're conflating two separate conversations, one that god had with Adam re the tree of knowledge and the second he had with deities unidentified about the tree of life.
Nicolaou, see the verses in Genesis chapter 2 below -
"15 The Lord God took the man and put him in the Garden of Eden to work it and take care of it. 16 And the Lord God commanded the man, “You are free to eat from any tree in the garden; 17 but you must not eat from the tree of the knowledge of good and evil, for when you eat from it you will certainly die."
God prohibited Adam and Eve from eating from only ONE tree. He could eat from any other tree in the garden. That included the tree of life.