Here ~性【せい】 is an ending similar to -(i)ty, -ness, -cy. For matters of illustration,
可能 + 性 = 可能性 ↔ possible + -(i)ty = possibility
安全 + 性 = 安全性 ↔ secure + -(i)ty = security
Indeed, 性 can also mean "gender" (although it cannot mean sexual intercourse), but this is not how 性 is used in 可能性, and no "Japanese person" would misunderstand this.