Taking photos of government buildings which have signs prohibiting photography is an extremely bad move, very illegal and can lead to imprisonment, fines and general unpleasantness.
Any form of hobby that involves cameras, binoculars or telescopes may well be misunderstood by military or police officials if practiced anywhere near a government building, military site or airport.
Of course there'd be no tourism industry at all if there weren't slightly different rules in the confines of the western hotels, but even there, don't go overboard!
Bearing all of this in mind, it should come as no surprise that as in many other Middle Eastern countries you should dress conservatively and that there are laws governing this.
However, the youth now seems to be well prepared to break these shackles and explore a whole new world of better, vaster possibilities.