Scientific facts behind not losing weight

How to lose fat without losing muscle?