This idiom tends to have a negative connotation. It’s used when someone is treated as badly as they have treated someone else.
- She made you feel bad about yourself and cry? That’s how she says you make her feel! It’s not fun to get a taste of your own medicine, is it?