I recall reading that in the hymnal when I was a kid. Even then I thought it was kind of grim.
It was inspired by this passage, when God said to the serpent in the Garden of Eden,
And I will put enmity
between you and the woman,
and between your offspring and hers;
he will crush your head,
and you will strike his heel.
--Genesis 3:15