Before you start embroidering, you can use a fray check on the edges or sew a zigzag stitch around the edges of the pocket to prevent fraying. Another option is to embrace the frayed look as a rustic design element.