(Proverbs 23:3 KJV) Be not desirous of his dainties: for they are deceitful meat.
I think this is one of the few places in Proverbs that we find a longer passage instead of stand-alone verses. The context here is a reminder of the dangers inherent in trying to be a champion in the rat race. It deals with priorities and the compromises we are inclined to make to achieve our dreams.
It does not mean that we should not desire to be successful. What it does warn us against is making luxury and wealth the guide for our decisions.
So? Wealth and compromise are not the way to a happy and productive life. It is also not the way to a pleasant eternity.