Lie not in wait as a wicked man against the dwelling of the righteous; do no violence to his home;
This is spoken, not so much by way of counsel to wicked men (they will not receive instruction, Pro 23:9), but rather in defiance of them, for the encouragement of good people that are threatened by them. See here, 1. The designs of the wicked against the righteous, and the success they promise themselves in those designs.
Commenting on Proverbs 24:15-16
For a just man falleth seven times, and riseth up again,.... This is to be understood of a truly just man; not of one that is only outwardly and seemingly so, or of temporary believers and nominal professors; but of such who are thoroughly convinced of their own unrighteousness, and believe in Christ for righteousness, and have it applied and imputed to them; as well...
The plots of the wicked against the good, though partially, shall not be fully successful (Psa 37:24); while the wicked, falling under penal evil, find no help.