a suboptimal trait evolving that still provided an overall population benefit (via survival or reproduction) with further improvement close to impossible without a multitude of large changes is literally just a local maximum in that high dimensional space that maps traits to whatever success metric you're measuring.
the infinite wall you describe is not a wall in that space. actually I originally wrote its more like a wall in the derivative space but its not quite right either, those just point straight down from the maximum.