Step 4: Sew the outside of the legs
If your fabric is really prone to fraying, zigzag the raw edges of the legs from ankle to crotch before you pin them together. Then fold the leg piece right sides together and sew a seam up the side from ankle to crotch. Do the same for the other leg. Press the seams open.