As outdoor celebrations and events marking the nation’s 250th anniversary and the World Cup reach their peak, local officials across the country are urging caution amid a heat wave blanketing many East Coast and Midwestern states.