In a sense, this is a form of Bayesian reasoning. You take the potential pleasure from fulfilling the desire and subtract the potential pain of the consequences of fulfilling that desire. After doing that, you have the full picture, which often doesn't look positive at all.