I did my military service in a democratic country in peacetime. No one would have entered the base without permission, never, no matter under what circumstances.
Social media posts or photo leaks to newspapers alone could bring you into prison, not to mention the behavior of the Israeli army.