China said the visit by House Speaker Nancy Pelosi would cross a red line and Biden administration officials have warned against her visit.