When a medication of any kind is prescribed by your vet, they're the best ones to ask if you have any questions about using it. Like you, I tend to agree that when your snake is about to shed, it would be a waste, but do ask your vet, as they've seen the wound & would know best.