1. Of course they did. Every host country does this.
2. Gun bans/restrictions don't stop bad guys from having guns and using them. Boycotting the Olympics will not change how China operates.
Gun bans/restrictions punish law abiding gun owners. Boycotting the Olympics punishes the athletes.
Neither hurts the party its intended to and both punish innocent people.