This is the most intelligent idea on the planet today.
No, the most intelligent solution would be to electrify the lamp posts. Not only would they bump their heads, but the electric shock would reinforce the lesson.