One of the analogies for electrical systems is plumbing, where we have pipe (wire), water(current), reservoirs, tanks or rivers (batteries or capacitors) and taps or faucets (resistors).
To control flow of water you always have the tap in the line before the appliance. Hence resistor goes before LED.
Jack