How can one avoid edema?

Dear Doctor;I was diagnosed with a strange disease whereby I was told that I have water in my legs and so it has to be removed. However, I really had never had of such a thing before. What could have been the cause? How can other people prevent this disease?
The New Times
Times Reporter