Flashing your lights to warn of speed trap is LEGAL FREE SPEECH!

Pulling someone over for a reason that isn't illegal aka a "Terry Stop" is illegal in order to find other things that may be "illegal".

Not the way probable cause laws have changed.