You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
alternatehistory.com
Could it be done as late as 1627 when Chongzhen takes the throne? Earlier? If yes what did Chongzhen need to do differently? Besides not executing General Yuan Chonghuan of course.
(Posted essentially the same question once but it got taken down for a warning so not sure how this goes.)