Genesis is a literal account from the creation of the world to the death of Joseph in Egypt. Revelation is prophecy in symbols of events from the first century AD to the end of the millennial reign of Christ.
In Genesis a literal serpent in Eden deceives Eve about eating the fruit of the tree of the knowledge of Good and evil. Adam and Eve disobeyed God and brought sin and death upon their posterity. The serpent becomes a metaphor for the result of its deception - the lust to do evil in mankind brought about by eating the fruit. God makes the promise in a metaphor that he will provide a redeemer, born of a woman, who would undo the evil caused by the serpent's counsel.
Genesis 3:15 And I will put enmity between thee and the woman, and between thy seed and her seed; it shall bruise thy head, and thou shalt bruise his heel.
In Revelation the metaphor of the serpent is continued to its conclusion. The serpent (Revelation 12:9) is used as a symbol for the Godless, idolatrous evil in men both as individuals and collectively in government. It was initially removed from Government in the Roman Empire (cast out of heaven Revelation 12:8) when Christianity became the official religion and idolatry was banned. It will be suppressed (bound in the bottomless pit Revelation 20:3) during the Millennial reign of Christ when everyone will be taught the truth and judged righteously. It will be finally destroyed (cast into the lake of fire Revelation 20:10) with death and hell (the grave) when mortality (Adam's nature) comes to an end and God dwells with men (Revelation 21:3).
In this way the literal tree of life (which would have prolonged his life indefinitely) barred to Adam because of his sin (Genesis 3:22-34) is symbolically restored (Revelation 22:14) as eternal life, to those who have put on the last Adam(1 Corinthians 15:45) when mortality is swallowed up of life (2 Corinthians 5:4).
This is a brief summary of the relationship between Genesis and Revelation.
I hope you have found this helpful.
May God bless you,