I’m of two minds. If it’s a crappy recruiter, I open with a ludicrous salary request to compensate for the wasted time - if I get it, I retire 20 years early. If I don’t, no harm done.
In an interview situation, I’d lead them along. Let them get to an offer and then explain that I’m not available to stroke their ego. Waste their time some.