It sounds like they are envious of your success and miserable so they are trying to give you backhand compliments just to push your buttons. Stay away from them as much as you can unless it is for work related things. Negative people like that are just seeking to down other people to try and make themselves feel better.