d., director of food safety research and testing at consumer reports. because cooking can kill off bacteria, this most often happens when fish and shellfish are raw or undercooked, or kept in danger-zone temperatures (between 135deg f and 41deg f) that allow these potentially harmful substances to grow.