In such a case, the speaker will usually end up right against a wall on a stand, or sitting on a shelf. Whatever the reason for choosing a small speaker – and both are equally valid – I find ...
You can also place them in a corner or even on your desk (depending on size), but a bookshelf isn't necessarily where you should put them; we would always recommend placing them on dedicated speaker ...