In this case, the better analogy would be beating the house by exploiting a flaw in slot machines that you knew about because you used to work for the manufacturer.
That isn't how whole life insurance works. You are thinking of term life insurance. Whole life is basically an investment package that invests your premiums and pays out to your beneficiaries upon death.