Purpose of a resistor at the input of a linear regulator
As the datasheet specifies on page 15, "Reducing Power Dissipation" section, it causes power to be dissipated in the resistor rather than in the pass element when the current is high. This will work as long as the resulting voltage drop allows for the dropout voltage of the regulator itself.