It is best to avoid both extreme heat and extreme cold, as they can make swelling worse.