While it’s not a good idea to rant at an officer, it’s not a crime in and of itself, and you shouldn’t be arrested or punished as a result.