As Buddha claimed, the best approach is to follow the middle path, meaning not to go to any extremes— not to overdo anything, nor to deny oneself anything completely.
Going to one extreme or the other will cause suffering, so to avoid such suffering, it is necessary to moderate things in such a way that there is neither too much nor too little of them.