True, but I’m not aware of any case when a hungry, healthy crocodile refused available food.
When a crocodile does “fast”, it’s because it has not caught anything for dinner in a few weeks or it has ingested something that has made it ill.
Also if the contacts on the battery short together do to the acids in the stomach of the croc the battery could overheat and explode.
Either of these occurrences would likely be fatal for the croc.