HAPE requires immediate medical attention. Before you leave home , you can do a few things to decrease the effects of high altitude. Eating foods which are high in carbohydrates, drinking more water than usual and using less salt may also help. Diamox should not be taken by people who are allergic to sulfa drugs. Once you arrive , take it easy for the first day or two.
Adequate hydration is important in the prevention of altitude illness.
Drink two or three times more water or fluid than usual. Limit alcohol comsumption for two or three days and minimize caffeine intake. Limit salty foods and increase carbohydrate consumption. Above all, listen to your body. Do not push the limits of your physical capabilities.