Wear gloves, and use an occlusive product like petroleum jelly around the edges of the skin where the hair dye might seep (forehead, eyebrow area, etc.).