The question arises because the verses preceding and following come from the mouth of Jesus Christ himself. Whether we attribute Revelation 22:14–15 directly to Jesus himself or not is actually secondary to understanding that these words are equally inspired and authoritative (see on Revelation 22:18–19).
15 Outside are the dogs and sorcerers and the sexually immoral and murderers and idolaters, and everyone who loves and practices falsehood.