To protect against acute pancreatitis, prevent the disorders that cause it:
If you develop acute pancreatitis as a result of alcohol use, avoid all alcohol in the future. If you develop acute pancreatitis as a result of a medication, avoid the medication in the future.
Banks PA, Freeman ML; Practice Parameters Committee of the American College of Gastroenterology. Practice guidelines in acute pancreatitis. Am J Gastroenterol. 2006 Oct;101(10):2379-400.
Frossard JL, Steer ML, Pastor CM. Acute pancreatitis. Lancet. 2008;371:143-152.