Originally Posted by JLS
Don't play there.
glibness aside, JLS has a point.
at typical bass guitar scale lengths, the B string barely sounds good even in the normal range you'd play it; up at the 24th fret it just won't vibrate cleanly, it's too thick for such a short length of vibrating string.
even the E string tends to not sound so good up there.