Put one’s neck under
Here’s what it means
To risk one's life for another person.
Why the Bible says it this way
Prisca and Aquila are pictured as placing their necks beneath a blade in order to protect Paul.
An idiom is a familiar phrase whose meaning comes from the whole expression, not from reading each word by itself.