What is the meaning of [whom the gods would destroy, they first make mad]

Those who commit acts of great folly are heading for disaster, the implication being that such people lose their sanity or good sense because they are destined for this end.