You can buy pet doors that are microchip enabled, so they only open for your pet. Or you can get ones that open with a magnetic door that only opens for your pet. You can also go full cat-proof with a fence, if that's appropriate.