Some edema can be expected, such as swollen ankles when you're pregnant or a traumatic ankle sprain; but edema can be caused by life-threatening conditions, such as heart disease or kidney failure.figure out