China wants to boost its sluggish economy and keep its currency stable, but that is proving a difficult juggling act.…