at the risk of his own life , or at least of his liberty , he interceded with caligula on behalf of the jews , when that emperor was attempting to set up his statue in the temple at jerusalem shortly before his death in 41 .