Earlier quoted context omitted.
While I'm not a lawyer, I would assume that "lawful order" has a specific legal definition and that "pursuant to this code" means that it's restricted to orders for enforcing the laws. There are certainly laws against interfering with police, but the right to observe them if you're not in the way is pretty well established.
I've posted this else-thread, but, basically: your assumption is incorrect. http://bradhicks.livejournal.com/316176.html
Here's what the MD ACLU has to say [1]:
> The safest course of action is to obey the officer's directives. Not every order by a police officer is lawful, and police may not lawfully arrest you in Maryland for failing to obey an order unless the order is lawful, and aimed at averting some imminent illegal conduct. It is difficult to know at the scene whether the order is proper, and failing to obey may result in an arrest, even though the arrest may not be proper. You have the right to photograph and record police officers performing their job in public. Police may not order you to delete photographs or recordings on your camera or cell phone.
Assuming the system works properly, you could not be found guilty of refusing to give a police officer pizza money (to reuse my earlier example). It's not illegal. Photographing the police and observing a scene without interfering is in the same boat.