Babi is a malaysia word. It might be offensive and a joke. Babi is also means pig in Malaysia. There is some way you can use this words on your friend or stranger. But, pls dont use it in front of older person or your parents. THAT IS DANGEROUS 🙂
(in conclusion just dont use it if u are a nice person)