Apply petroleum jelly along the hairline (but not on it) before applying hair dye. The petroleum jelly acts like a barrier and stops the hair dye from sticking to the skin. After applying the hair dye while waiting for it to set, you can wipe away the petroleum jelly.