A good way to stay safe during hot weather exercise is:

all of the above

wearing proper clothing

drinking enough fluids

timing your workout to avoid extreme heat