i keep dying when people teleport onto my ship
get mantis crew, improved blast doors and anti-personnel drones.
Mantis crew will make quick work of them.
Improved Blast Doors make it harder for them to get to other areas of the ship, allowing you to open up your airlocks to that section of the ship.
Anti-personnel drones will seek out intruders and attack them.