Both of these kinds of diets are very popular. I've done them both!
I've experimented alot with IF, and was even an enthusiastic spokesman at one point, as I did lose weight with it and it enabled me to "indulge" at times.
However, thought there are a couple of good things about it (you can learn that mild hunger is not such a bad thing), I think it has some dangerous aspects. I ended up a bit messed up about food and it encouraged the whole binge/fast cycle that long-term "dieters" get caught up in. My body fought against it and wanted to eat roughly the same most days and I ended up feeling very physically confused.
So, I am actually, quite against it now.
Keto also is very popular, along with its sister "Paleo". It restricts carbohydrates severely. Lots of people swear by it. Its true too many carbs in form of doughnuts, biscuits, cakes, sweets etc are going to make you chubby. But there are plenty of good carbs I would say - potatoes, vegetables, rice etc. that should not be so severely restricted. Carbs are good for us, within reason, I believe, if eaten in a balanced way. Read Matt Stone online for his well-thought out objections to Keto/Paleo/low carb diets. Also, most people can't keep up the high protein or high fat diets for long - they return carbohydrates to their diets eventually and put all the weight back on. What a waste of time!
It may be boring but true. A balanced, healthy, enjoyable diet. Reasonable portions. Avoiding binges. Some exericise if possible. Food in its proper place. These are what keep us naturally slim-ish.