Obey only rules that you view to be reasonable and if they aren't, question them.
Not questioning authority and not standing up for what you think is right is the most common cause of problems in the world and leads to oppression. People who think all authority is to be respected and all laws obeyed grow up to be Nazis.
Don't assume authority figures are always going to follow the laws they set forth. I'm sure many cops do not think they're above the law, but it's still correct to be cautious.