In general a longer maturity rate is practically speaking as equally profitable as a series of short maturity rates compounded. So for example, investing for 1 year thrice is as equally profitable as investing for 3 years. Investing for 6 months 16 times is as equally profitable as investing for 8 years. There is no certainty of equality and you can make money if you guess correctly. If there are many guessers then near equality will be realized.
The U.S. Treasury short maturity yield is higher than some of the long maturity yields (today), not because the short maturity investments are riskier. It is because the very short term rate (overnight) set by the Federal Reserve is high enough that the 3 month rate might be higher than the 10 year rate. In other words, the expected mean rate for the next 3 months is higher than the expected mean for the next 10 years.