You cannot harm crew at all. However for example, if you are protecting crew from a threat without a job icon in your HUD, you are free to attack and fend them off.
If both parties have a job icon, you cannot attempt to fend them off. If you still don't get it, feel free to admin message.