A hospital trust has issued a warning to people heading to its A&E department.