Or you know, you could stop breaking the law. That seems to be pretty effective.
Actually nobody said any laws were broken, just that you were with a cop on the side of the road. Could be a flat, out of gas, burned out light, over zealous pullover for no apparent reason or whatever. If you actually broke some law, you might get hassled more and deserve it.