Professor Stephen Farnsworth of the University of Mary Washington in Virginia said that President Trump would be better off making sure the federal government was prepared to deal with the severe storms headed to Puerto Rico and Florida rather than engaging in a Twitter feud with the mayor of San Juan.