If foreign food or textiles are cheaper than your local production in a developing nation, it seems your population is suffering from those inflated prices and the aggregate good of the nation may very well be improved by having more food and clothing available at lower-than-current prices. Anything less is forcing your local population to subsidize the inefficient-but-domestic production of goods.