40,000 people remain evacuated while crews put themselves ‘in harm’s way’ to try to avert disaster, official says.