How to avoid an a$$whipping: obey the law.
And don't turn a possible traffic ticket into a chase and a firefight.