I always stitch around the edge of my quilt before I trim the batting and the backing and before I put on the binding. It makes it so I have one less thing to match up when putting on the binding. If I have a pieced border I always stitch around the outside edge before I sandwich the quilt as well to keep it square and keep seams from unsewing.