You can use a bookend to stop books falling off