Hmm, interesting. Apparently, only one country in the world is completely self-sufficient in food production, across all seven essential food groups (dairy, fish, meat, legumes, nuts, seeds, and "starchy staples") and you probably won't be able to guess which country that is.
Guyana has managed to achieve this while retaining 85% of its country as impenetrable rainforest. So, not by clearcutting, but by maximizing its limited agricultural land. It helps that the coastal strip where most of Guyana's population lives is blessed with year-round warmth, high rainfall and good fertile soil.
It also uses agricultural practices long abandoned by more developed countries, including intercropping (growing two or more crops in the same field, rather than the monoculture practice used in most of the world today). When done right, e.g. by pairing crops that naturally complement each other, this can improve soil structure, enhance fertility, help control pests without chemicals, and spread risks across the growing season.
Guyana is clearly doing it right.
While Guyana is the only country self-sufficient in all seven food groups, the study published recently in Nature indicates that countries like China and Vietnam come close with six, the USA has five, and the UK just two. Some countries, mainly in the Middle East, do not achieve the needs of ANY food group.