Contrary to most teachings Adam didn’t know about the tree of life. He would have taken it in the course of doing his work and could have remained in the Garden as long as he didn’t take of the Tree of the Knowledge of Good and Evil.