Indeed, and the reasons those two nations you mentioned had foreign investment were that they have political stability and cheap electricity which is good for business even though both of these nations in the coming years will have issues with aging population .Your best bet is to jump straight ahead to the frontier by inviting firms from advanced economies to manufacture in your country. This is what China did and it is what Vietnam is trying to do now.