Three security checks are sort of the norm for US/UK/Israel departures, though the gate one happened around 50% of times to me.
I suppose there’s good reason for having it, considering the Daesh attack at the old Atatürk a couple of years ago. Reading how it unfolded I dread to think at the consequences had something like that happened at an airport where entrances aren’t patrolled by armed guards.