How do you know you need a new battery for a 2002 Pontiac grand am?

WHEN it gets hard to turn over. Or when you turn it over and the lights of your car dim down..