You are 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 ruinig your day in a quixotic 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 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 you both. The sooner you get back to work, the sooner you can move foward toward your best outcome, which is achieving what you set out to acheive in the first place.
The real tragedy of the person who dumps on you is that you pay twice. The second time you get bent out of shape trying to get even.