Tourists can sometimes take the attitude that local residents should be grateful for the money they're spending and the jobs that tourism creates. That's pretty arrogant. Most tourism jobs are low-paid, and you should always be polite. People aren't paid to put up with rudeness.
Everybody needs a holiday, but you should always try not to have a negative impact on the residents. So always give some thought to being a considerate visitor, and your visit will be welcomed rather than dreaded. Do you live in a place that's popular with tourists, and how does it affect you?