If the landlord really doesn't like it, there is a way to try.
Cats are most afraid of water, so the landlord can prepare a small watering can, which is often used in barbershops to spray water.
Fill it with clean water, preferably a few drops of toilet water, so that cats are less likely to get skin diseases.
As long as it goes to bed, spray it with water, preferably at an invisible angle (so it won't hate you). And stop it in a reproachful tone.
After several such experiences, cats will think that water will come out as soon as they jump into bed, and they don't like their hair to get wet by water. In addition, the cat can understand people's tone and know that you don't like it running on the bed, so the cat will not want to go slowly.
Cats are free animals, so it is better not to lock them up or tie them up with ropes, which is a great torture to them and obliterates their nature.
Pets don't think with human thinking, so when they encounter any problems, please let their owners think from their perspective and master their habits, and many problems will be solved.