"I then beheld the beauty and loveliness of Jesus. His robe was whiter than the whitest white. No language can describe His glory and exalted loveliness. All, all who keep the commandments of God, will enter in through the gates into the city and have right to the tree of life and ever be in the presence of the lovely Jesus, whose countenance shines brighter than the sun at noonday. EW 51.1"
"Blessed are they that do his commandments, that they may have right to the tree of life, and may enter in through the gates into the city."
The EGW passage explicitly alludes to Revelation 22:14, mentioning the right to the tree of life and entering the city through the gates, which are direct quotes from the verse. The connection is undeniable.
"I was pointed to Adam and Eve in Eden. They partook of the forbidden tree and were driven from the garden, and then the flaming sword was placed around the tree of life, lest they should partake of its fruit and be immortal sinners. The tree of life was to perpetuate immortality. I heard an angel ask, “Who of the family of Adam have passed the flaming sword and have partaken of the tree of life?” I heard another angel answer, “Not one of Adam's family has passed that flaming sword and partaken of that tree; therefore there is not an immortal sinner. The soul that sinneth it shall die an everlasting death—a death that will last forever, from which there will be no hope of a resurrection; and then the wrath of God will be appeased. EW 51.2"
"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."
The EGW passage directly references and expands upon the Genesis account of the flaming sword guarding the tree of life.
"Behold, all souls are mine; as the soul of the father, so also the soul of the son is mine: the soul that sinneth, it shall die."
EGW's statement, "The soul that sinneth it shall die," directly echoes the principle stated in Ezekiel 18:4, although it adds the concept of an "everlasting death."
"But the day of the Lord will come as a thief in the night; in the which the heavens shall pass away with a great noise, and the elements shall melt with fervent heat, the earth also and the works that are therein shall be burned up."
Both passages refer to the purification/destruction of the earth by fire. While EGW's statement is brief, it aligns with the broader theme of 2 Peter 3:10.