The problem is not relevant to ur usage of > and <, it is just that ur indentation is not correct - 'else' should be aligned with 'if'
Correct version:
if Total_bet >= balance: print(f"your too broke, your current balance is: ${balance}")
else: break