Hi,
Welcome to the forum and I am glad to help you out. There's always a possibility of getting hurt when one sleeps at the edge of the bed. Hence, there are 2 things which can be done in such a scenario.
One is by moving away the dressing table from the bed or secondly by keeping a pillow at the edge of the bed to prevent getting hurt. One tends to move a lot during sleep and that's the reason the size of the bed should be big. I sincerely hope that helps. Take care.