That is entrapment, to some extent.
The ideal function of the police is to PREVENT crime. NOT sit there and let somebody commit the crime and then cite them. Factually, if that cop were in a patrol car, more people would be aware and check their speed, be more cautious at lights, etc.