You're actually not teaching them a lesson, because the people who most need to learn a lesson haven't, and won't. What you're actually doing is diverting yourself from your path as well as ruining your day in a quixotic quest for fairness, fairness you're unlikely to find.
Sure, you can shut someone down, excoriate them, sue them or refuse to let them win, but odds are they're just going to go try their game on someone else.
When you fire a customer and politely ask them to move on, you are withdrawing yourself from their trollish dance. When, instead, you focus on the good student, the worthwhile investor, the delighted vendor, you improve things for both of you. The sooner you get back to work (your work), the sooner you can move toward your best outcome, which is achieving what you set out to achieve in the first place.
The real tragedy of the person who dumps on you is that you pay twice. The second time is when you get bent out of shape trying to get even.