An inverted yield curve instead slopes downward and means that short-term interest rates exceed long-term rates. Such a yield curve corresponds to periods of economic recession, where investors expect yields on longer-maturity bonds to become even lower in the future.
Moreover, in an economic downturn, investors seeking safe investments tend to purchase these longer-dated bonds over short-dated bonds, bidding up the price of longer bonds driving down their yield.