There is nothing you can do form keeping a battery dying. But with some activities, you can help it last longer. Here's some advice on how you could keep them last longer-
Proper maintenance and monitoring.
Using a smart Charger.
Keep track of our power requirements.
Minimize the power consumption.
Using wind turbine/solar panel/hydro generator.