Measure how far the baseboard projects from the wall. Look at the bottom of the bookcase to see whether its back has a recess for trim.
Use cardboard the depth of the bookcase to show where its front edge would land with that gap. Check nearby door swings and walkways.
Tell the seller, “My baseboard projects this far. Will this bookcase sit against the wall above it?” Follow the maker’s anchoring instructions.