Lithium battery charge and discharge control circuit