These verses continue the "thirty sayings" from Proverbs 22:20.
"something bad happens to your enemy"
"do not allow yourself to be glad" or "stop yourself from being glad"