Violators of traffic rules to face legal action on spot