It is very important that, for any sleep surface used for a child under the age of about 4 years, the bed is arranged in such a way that it is not possible for the child to become wedged between the bed and another object – such as the wall or another piece of furniture.
It is not possible to describe every potentially risky setting, but if there is a potential gap into which a small child might wriggle and get stuck this is something to think about and avoid.
You may want to consider how heavy is the toddler bed – is your child able to push it away from the wall? Is the mattress very deep creating a deep gap between the mattress and the wall? Is the bed and the mattress snug against the wall and the bed is not easily moved with little force?