Sometimes people say, I won't bite, when they want a person to be less shy and come close for a hug or whatever. You would say I will bite as a warning of a literal bite. This may or may not be a joke. It depends. You should be able to tell which is the case at the time.