If you ate fewer calories than you needed you would lose weight but you would violate the first eating principle. Most everyone agrees a diet of nothing but ice cream isn’t very healthy. Conversely, if your goal was to maintain your weight and you ate just green beans and consumed more calories than you needed you would gain weight.