how to lose weight on a treadmill?

i’m 280 pounds and found out i’m pregnant again. i just purchased a treadmill and i’m wondering how i can lose weight without hurting myself lol my ankles and knees are pretty weak from being over weight and having back to back pregnancies.

(please no judgment on my weight i’m trying to change and it hurts my feelings a lot when someone tells me i’m fat)