I disagree. I've personally hired people who previously did this exact back and forth dance of getting an offer, then rejecting it because their current employer made them a better off. If a company is petty enough to hold it against you when you act in your best interests, you probably don't want to work there.