That is not what the text states. That may be what you were taught it means, but that is not what is
states. Stick first with what is stated.
Rev. 22:18. I gotta go but let me recommend you get out your Bible and read the first 20 verses of the book and read it as literally as you can, as objectively as you can. Take it exactly as written without all the biases all the many teachers have preached. Start with the text itself exactly as written, apart from all the Historicist, Amillennial, Postmillennial, Dispensationalist, and Idealist viewpoints you've heard over your Christian life. Stop yourself each time you hear your mind say, "It refers to....."
It does not "
refer" to anything other than what it states.
Where it does refer to something other than what is stated the text explains itself. Once all the millennia of speculation is discarded the book of Revelation is not particularly difficult to understand.