A local court in Nanjing ruled that the foster mother who beat her son after he failed to complete his homework had gone “too far,” upholding her six-month prison term.