We are admonished in this passage not to envy the wicked - not to act like them, not to gloat over them, not to fret about them.
“Follow your heart” can end up being just doing whatever we want. Instead Proverbs encourages us to apply our heart, turn our heart, and direct our heart towards God’s wisdom.
God calls us to be faithful in persevering but he is also faithful to keep us to the end. Please don’t give up.