The problem is that what you think is funny may be uncomfortable to a other people, and for some reason, it's always the funny guy who thinks that the onus is on everyone else to shift their behavior to accommodate his comfort.
It gets worse when half the team is laughing, and the other half are praying for you to be struck dumb already.
It's really not that hard to keep your forms of merriment clean and appropriate, if you are a generally good-natured person that likes who you work with and wants to make them laugh.
That said, there are certainly people that can only perform humor as a zero-sum game. But in my experience they are also generally the kind of people that subject their coworkers to uncomfortable conversations in a myriad of other ways.
It gets worse when half the team is laughing, and the other half are praying for you to be struck dumb already.