Thank you for being part of the community.
Since you're able to correct the situation by pushing the bookshelf towards the right, I would suggest checking if all the hardware is properly tightened.
If so, then maybe your floor is not leveled. You can correct this by adding a spacer under the bookshelf.
Found your solution? Simply click on Accept as solution to help others with similar questions!