Verse 5 word for word, except for the last verb.
Quick answer
The chapter repeats itself and raises the stakes. "Will not escape" becomes "shall perish."
Read both lines
Two identical couplets four verses apart is not an editing accident; repetition is how this literature raises its voice. The change is confined to the final Hebrew verb, from shall not escape to shall perish, and the escalation moves from evading consequence to being undone by it. That is the whole difference between the verses, and it is enough. The chapter is building a case about testimony that runs from here to verse 28, where a worthless witness makes a mockery of justice, and lands at verse 29, where the sentence is already prepared. Read on its own, the verse says perjury is fatal to the perjurer. Read in sequence, it says the book is not finished making the point.
Related: Proverbs 19:5 · Proverbs 19:28 · Proverbs 21:28
New King James Version®, Copyright © 1982, Thomas Nelson. All rights reserved. Full copyright information. Scripture provided by API.Bible.
Go Deeper
If this verse has been used to put weight on you that it was never carrying, ask about it directly.