These are recommendations not to do something, by saying that if one doesn't do X, then it will be (ie there will result) the best situation. The 'is' ("It's") is an act of making a choice from several options (X is best, Y is worst) You'd see it more clearly by reversing the phrases - It is best if we don't talk -> If we don't talk (then) it is best etc d
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.