Cut the dough before baking. There’s pretty much no way to get a consistently clean edge if you bake first and then try to cut.