A spate of drownings at popular swimming spots in one state has prompted a major warning from authorities.