Some “friends” pretend to be friends, but a true friend sticks closer than a brother. True friends want only the best for you. A true friend will never hurt you on purpose, but will tell you the truth even if it hurts. Proverbs 27:6 (CJB)
Either you are a friend of God or an enemy. You simply cannot be both. So, if you want to be a friend of God, meet the “if” condition. As I said before, the “if” condition is “if you do whatever I command you”. In other words, you are a friend of Jesus if you do what He says.