Where climbing onto something is involved such as in the example shown here, it is better to obtain proper steps or similar as twisting the body like this can cause spinal problems.
It probably won't do any harm except in the long term but there is always risk of accidents and twisting the back is something to be avoided.