1. The probability of your being in a stressful situation without the option to leave is high - you probably arrived via plane, so you can't simply go back, and you don't know the local laws well.
2. You usually know that a customs checkpoint is upcoming.
So, in that case, it's far better to prepare (i.e. don't bring things you don't want searched/compromised) and cooperate.