Make sure there's plenty of cheese in the filling. As the cheese melts, press down with a spatula on the outside of the quesadilla. The cheese provides the melting texture that holds the quesadilla together. If there's plenty of cheese the edges are held together by the melted cheese while cooking.