When a developing country reaches a relatively average income level, it often stops growing further and its income does not improve. This is known as the middle-income trap. How to overcome this trap is a longstanding problem for developing countries, and has been studied in various research fields. In this work, we use the Fitness-Complexity method (FCM) to analyze the common characteristics of the countries that successfully get through the middle-income trap, and show the origin of the middle-income trap based on the international trade network. In the analysis, a novel method is proposed to characterize the interdependency between products. The results show that some middle-complexity products depend much on each other, which indicates that developing countries should focus on them simultaneously, implying high difficulty to escape the middle-income trap. To tackle the middle-income trap, developing countries should learn experiences from developed countries that share similar development history. we then design an effective method to evaluate the similarity between countries and recommend developed countries to a certain developing country. The effectiveness of our method is validated in the international trade network.