For two hours Kṛṣṇa remained like an ordinary child gripped in the coils of Kāliya, but when He saw that all the inhabitants of Gokula--including His mother and father, the gopīs, the boys and the cows--were just on the point of death and that they had no shelter for salvation from imminent death, Kṛṣṇa immediately freed Himself. He began to expand His body, and when the serpent tried to hold Him, he felt a great strain.
Krishna Lilas - The Nectarian Pastimes of the Sweet Lord
When Shri Krishna descended in the age of Dvaapar as a curly-haired, rosey-cheeked baby Who possessed as much splendor as the Universe itself, Lord Shiva rushed to Gokul to visit Him. He begged and pleaded repeatedly with Yashoda Maa to have a mere glimpse of the Divine Child, but Yashoda Maa objected each time, reasoning that her precious Babe would become frightened by Lord Shiva’s appearance: his long matted hair, his several cobras, his body adorned with ashes.