A 65-year-old patient recovering from a total hip replacemen…

A 65-year-old patient recovering from a total hip replacement 3 days ago needs to transfer from bed to commode. The patient has been instructed on hip precautions. During the transfer, you notice the patient starting to cross their affected leg over the midline. What should you do IMMEDIATELY?