The only danger I could think of, is if one of the rocks fall on them.

Of course, you would want to put the rock down before any substrate, so the snake dosent tunnel under the rock, and the rock caving down on them (falling on)