It is actually possible!
The first just has to be very precise, I recommend getting close to the edge then going to the right and timing the jump just right. The second portion you have to jump just enough to get over the wall but not too much to hit the ceiling.