I don't think even totalitarian governments can do anything about it now. with few exceptions, the only places on Earth with TFR above replacement are undeveloped countries or underdeveloped areas within developed countries. what could China or Russia even do, undeveloped themselves? dismantle their cities and uneducate their people?
Communist Romania did it simply by outlawing all forms of contraception. TFR jumped from 1.9 to 3.7, nurseries were very busy, and the rivers were full of dead unwanted babies (as that is the thing humans seem to be hardwired to want to do with unwanted babies). It didn't last as people found ways to get contraception anyway within a few years.