UN must act to prevent crises before they occur: Former General Assembly head