You are right when saying that you shouldn’t do anything especially if they are armed. The best option is obviously avoiding such situations entirely but there are some things you can do to prepare for it.I’d suggest having a low withdrawal limit on your card. Personally, my cards have a limit of about 200 dollars per day. Another option would be to use a prepaid credit card with only so much money in that account.
When you get back to civilization, definitely make a police report. At this point, I would also call my bank and report my card stolen, my reason being that the PIN has been compromised. Nearly all cards (even debit), will not hold you liable for transactions such as this. It will take a while for them to refund the money if it is debit but it will surely happen.
Credit:stackoverflow.com‘