Rule reminder
Using 'il/lo + infinitive' turns a verb into a noun phrase. This is formal/literary. It generalizes the action as a concept.
'Il mangiare troppo fa male' means: