It means time to quit, to give up. I believe this phrase comes from baseball, where spikes are referring to the spikes (also called cleats) on the bottom of the shoes which help the players run faster. So basically you're saying that it is (or was) time to hang up your shoes.