Knowing precisely what to avoid is important. The simplest way to do that is to discover what mistakes others are making and then make sure to avoid them.
For losing weight, this is also applicable. There are many people who succeed there. You’ll want to be one of those people instead of one of those who make mistakes and fail.