Society ingrains certain preconceived notions in our mind and due to that we don’t judge situations by instinct. The poet was fascinated by the snake. He appreciated the snake’s majestic and harmless nature but the earlier instincts drilled in him by society force him to strike at the snake. He had been taught to kill snakes.