Failure to obey a lawful command will get you in trouble or more trouble for sure. If the command isn't based on a written law I don't believe you face the same risks or penalties. The job of the ranger, cop, or whatever official is to know the rules they enforce and how to apply them.
Getting pulled over for 5-miles over the speed limit vs 15+ miles over results in different tickets from a police officer. If the officer gives you a ticket for 15+ or reckless driving and you can prove you were exceeding the speed limit by 5 over you don't suffer the same penalties. Yes you get a ticket, but it ain't the same.