Precautions for ensuring the capacity and lifespan of lithium batteries