Coco Gauff was forced to save a set point as she won her first outing since the US Open to reach the third round of the China Open.