Technically that admonition at the end of the book of Revelation is pertinent to and relevant to only the book of the Revelation, not to the entire collection of 73 books that is the Bible.
Revelation 22:18-19 is concurrent with Deuteronomy 4:2/12:32. As well as Matthew 19:17 and John 14:15.