If the yield curve inverts, that is bad because banks will not lend money at rates lower than their borrowing costs. It's as simple as that and the economy will slow down naturally,
The yield curve is flat and typically when that happens, banks are reluctant to lend money and the economy becomes vulnerable,