The best way to keep cats from falling is with a 1m thick prim under the floor. If they can reach the edge/walls then best to add in a 1m thick prim around those as well. That will help keep them in.
“What greater gift than the love of a cat.” ― Charles Dickens