How our gut lining is protected from its own secretion of proteases?

Gut lining is protected from its own secretion of proteases as
(i) Proteases are secreted in its inactive form called proenzymes so, that they do not act on gut lining. .
(ii) Gut secretes mucus which thereby inactivates the proteases and protects the gut lining.