Li called for Beijing to “make as many friends as possible and as few enemies as possible” in its competition with Washington, evoking a slogan from former Chinese leader Mao Zedong.