I disagree depending on the circumstances.
If you are just trying to make ends meet, then yes, probably don’t go for it.
If you need access to working capital to hire more people, increase production, etc then it’s completely worth it.
For reference I founded a consulting company. We landed large projects. Had to pay employees to produce the deliverables, but did not get paid until later.
Basic math here is: Typically Net 30 terms. Usually have to pay a month or so worth of salary before hitting milestone to allow billing (then 30 more days to get paid). With $80k/mo in salaries we required working capital.
Even at the criminal levels that are charged for startup loans (plus personal guarantee) it is worth it when you are making 60%+ margins.
I have since paid down the loan and then sold the consulting side to focus on some products with a small in-house team. Funded for years at this point.