Surf was predicted to reach 15 to 20 feet, and officials said shore breaks and dangerous currents could cause injury or death.