You can use a book end to keep books from falling off the edge of the shelf.