Make sure to heat the oil in the skillet before adding the garlic to prevent it from burning.Do not overcrowd the skillet with shrimp, cook them in batches if needed.Use a meat thermometer to check the internal temperature of the shrimp, it should be 145°F.