To prevent overcooking shrimp, keep a close eye on them while cooking. Shrimp cook quickly and become tough if overcooked. Sauté them on medium-high heat for just 1-2 minutes per side until they turn pink and opaque. Remove them promptly to avoid overcooking.