When I'm work with a fabric with a low thread count or worried it might fray, I trim the edge with pinking shears or run a thin bead of glue along the edge. It's ok if it's permanent because it's going to get cut anyway. Then I prewash it and throw into the dryer.