Tape off the back with good painters tape and rub the edges down good then spray two coats of shellac on the exposed wood, when dry remove tape and stain/dye back carefully and when it is dry scrape the edges where it ran the shellac will scrape off and leave a clean line, try it on a scrap pc of sanded wood i have done this before and it worked well