“Do not wear yourself out by attempting to get rich.” This is a general principle that occurs throughout the Word of God. Although there is nothing wrong in trying to better one’s circumstances in life, making being wealthy the focus of one’s life is a mistake. There are so many uncontrollable factors that can prevent a person from getting wealthy, and so much chance that one’s best efforts will not result in wealth, that wealth is not a good target for a person’s efforts. Even at best, it only lasts the few short years of this life. God says not to make wealth our goal (Prov. 23:4; Luke 12:15; 1 Tim. 6:8-10; Heb. 13:5). Jesus tells us not to build up treasure on earth, but to build it up for the future life (Matt. 6:18-21).
Also, the context of Proverbs 23:4 is being with wealthy people and stingy people, who therefore are likely wealthy (Prov. 23:1, 6). Often when one is with wealthy people there is a temptation to compromise one’s principles and get into ungodly situations that will result in everlasting consequences. That is why Proverbs 23:2, 3, and 23:6 warn against what the wealthy are serving—it often comes with a cost. But in the end, there is nothing more valuable than living in obedience to God.