As for thin legs, some breeds of dogs have thin legs, such as baby deer.
So you should first compare your dog with the dog of the same breed. Judge whether it is indeed an abnormal situation.
If it is caused by serious parasites, the stomach is very big, malnutrition, and then "thin legs" and "unstable walking" appear, please see a doctor immediately!