bookended

adj.

Having drunk more than the surrounding furniture, and requiring it for lateral support.

Williamm was bookended by the shelves and made no attempt to move between them.

Source: Wiktionary