This is how to baby proof a bookshelf:
Secure the bookshelf to the wall so there’s no danger of it toppling over
Remove any dangerous items from the lower shelves – including anything small that could be a choking hazard
Place any valuable books or other items you don’t want your child to play with – and possibly damage – on a higher shelf.