Take a garment of one who has put up security for a stranger
"Take a garment as security from the one who guarantees that what a stranger has borrowed will be paid back"
hold it in pledge
"hold onto his coat as a guarantee of repayment"
for an immoral woman
"for foreigners."