From Fritz Leiber's 1959 sci-fi classic "Damnation Morning" —

She drew from her handbag a pale grey
gleaming implement that looked by quick turns
to me like a knife, a gun, a slim sceptre, and a
delicate branding iron— especially when its tip
sprouted an eight-limbed star of silver wire.

“The test?” I faltered, staring at the thing.

“Yes, to determine whether you can live in the
fourth dimension or only die in it.”

Related 1962 drama  from the Twilight Zone —

"He's a physicist, maybe he can help us out."

See also Step.