Simple. If a 'friend' said this to me, it clearly shows they are not a friend. At least not what I would consider a friend. What would I do? I wouldn't even bother replying to such people and would seek true friends who can rejoice in my successes, not show mean-spiritedness or jealousy.