Have a secure enclosure with locks. A PVC cage that has all sides covered and front opening plus locks is a good example.

Cats are curious by nature, unless they had been raised to kill and eat prey. Cats can kill snakes with ease, if not seriously maim them. But they are triggered a lot by sound and movement. Covering the tank with a towel so your cat can't see the snake, it will probably leave it alone. If you can find a way to keep the snake securely locked, and the cat can't reach it, it can work.