My M-I-L finally moved in wity us (we converted a downstairs room). Worked OK for a while, the she started wandering around.
This didn't last for long because she lost mobility, and so we *knew* she couldn't move. She was also given a hospital bed with side rails.
My uncle was similar. The difference there was that as an engineer, he could defeat all the locks on the side rails they tried. Towards the end, someone had to sit with him all the time.