There are three simple methods:
Never overload your UPS.
Never connect any home electronic devices such as cooling fan to your UPS. This may cause malfunction of your UPS.
Discharge the battery in a consistent interval. The best way to do it is once a month or once two months. The simplest discharge way is to turn on the UPS without connecting the mains.