To prevent the shrimp from sticking to the pan, make sure your skillet is well heated before adding the oil and shrimp. Also, be sure the shrimp are dry before placing them in the pan. If your shrimp are sticking, avoid moving them around too much during cooking, as this can disrupt the searing process.