——Photography is not a crime.——
it might be taking pictures of bridges or dams or other infrastructure might be a terrorist action and a real violation
Yes, that's the rule in communist countries, and a way you can tell if you live in one.