As a dino fan, of course, the first thing I thought of was a sauropod
using its neck like that in defense.
Seems very unlikely, even suicidal, against a big theropod. Amargasaurus
might have been an exception although its cervical spines could have been
for passive defense or display/intimidation.