Original sentence: From the Boxer rebellions, they learned that the best way to deal with China was through the Chinese dynasty, instead of direct dealing with the Chinese people (as a saying “The people are afraid of officials, the officials are afraid of foreigners, and the foreigners are afraid of the people" (老百姓怕官，官怕洋鬼子，洋鬼子怕老百姓))
Edited sentence: From the Boxer rebellions, they learned that the best way to govern China was through the Chinese dynasty, instead of direct dealing with the Chinese people (as a saying “The people are afraid of officials, the officials are afraid of foreigners, and the foreigners are afraid of the people" (老百姓怕官，官怕洋鬼子，洋鬼子怕老百姓))