God had driven man out of the Garden of Eden, so that he wouldn't have access to the Tree of Life while he was spiritually dead.

"So he drove out the man; and he placed at the east of the garden of Eden Cherubims, and a flaming sword which turned every way, to keep the way of the tree of life."
Genesis 3:24