It should also be said that there's nothing special about wolf whistling in that respect either. More or less everything is fine, if there's consent and understanding about what's intended: people can make all sorts of outrageous jokes among friends, trade mocking insults, etc etc, that they'd obviously never expect to get away with in general with strangers. It's all about knowing somebody's boundaries and respecting them.