So..is there any point in locking the door to the cockpit or not ????
Of course there is otherwise we would have no control at all over who comes and goes!
And as for the cabin crew entering they have procedures to minimise the chance of being overpowered which probably are best not advertised on here.
If cabin crew did not enter the flight deck flights would be a lot more dangerous due to the breakdown in CRM.