Rule reminder
In real Italian: 'per non + infinitive' is extremely common in everyday speech. In more formal contexts or with different subjects, use 'affinché non / perché non + congiuntivo'.
Mi sono messo la crema solare _____ scottarmi in spiaggia.