You pretty much always do a late-stage private round shortly before an IPO, that is the standard. The goal of the late-stage funding round is to give a better idea of how much capital can be raised by the IPO. It helps reduce uncertainty about expectations of what the company is worth before going public.