Is this safe? The plastic goes into the switch

This shows how the bottom is inside the switch.