Japan and the United States could not stand by if China attacked Taiwan, and Beijing needs to understand this, former Japanese Prime Minister Shinzo Abe said on Wednesday.