give somebody a dose/taste of their own medicine

From King Dictionary of Contemporary Englishgive somebody a dose/taste of their own medicinegive somebody a dose/taste of their own medicineTREAT/BEHAVE TOWARDSto treat someone as badly as they have treated you medicine