MMII with taxe: Equity vs debt financing

Hi guys, just a quick question…

If maximising debt increases the value of the firm as a result of the interest tax shields, then why is it that debt financing isnt always the way to go when maximising the share price of the firm?

Because of the risk of bankruptcy.