It's important to know your rights and have a plan of action if you ever encounter law enforcement.