To dream that someone is mean to you indicates that you are afraid of what that person thinks of you. In the dream, your mind is exaggerating to the worst possible scenario in order to prepare you for a confrontation that you worry may be in your future.
Alternatively, the one who is mean to you in your dream might be yourself. Don't be too hard on yourself in your daily life.