Actually, the meaning of this sentence is not friendly. Often appear when belittling others. It describes that this person will never have any promise in his life, and his life is very poor, and he can't reach the standard of a well-off life. The food standard of a well-off family is generally four dishes and one soup.
There is also a saying that these four dishes are also four stages of life. If a person's character and ability are not up to standard, he may not be able to eat these four dishes in his life.
Extended meaning:
There are some snobs and people who look down on others in rural areas and even cities. When they see people poorer than themselves, they often have a sense of superiority and despise others from the bottom of their hearts.
There is sarcasm and ridicule in the speech. When chatting with others, if you talk about topics that are beneficial to you, you will say "you can't afford to eat four dishes in your life" in order to suppress others, which will make others feel embarrassed and ashamed, thus making them superior.