Between a rock and a hard place
ɛtʁ ɑ̃tʁ lə maʁto e lɑ̃klym
In French Être entre le marteau et l'enclume
This idiom, meaning 'between the hammer and the anvil,' conveys the same sense of being trapped.
Example
"Il était entre le marteau et l'enclume, devant choisir entre son devoir et ses sentiments."