Next to has 2 different meanings across 1 category:
Prep
Almost; nearly, well-nigh.
Beside, alongside, by, adjacent to, or near.