YOU SAID:
if (doingCrime(illegalAct)) { if (intelligence == 'smart') { return 'Don\'t get caught'; } else { return 'Don\'t drop the soap'; } };
INTO JAPANESE
if(doingCrime(illegalAct)){if(intelligence == 'smart'){return'Don \ 't get catched'; } else {return '石鹸を落とさないでください'; }};
BACK INTO ENGLISH
if (doingCrime (illegalAct)) {if (intelligence =='smart') {return'Don \'t get caught';} else {return'Don't drop the soap';}};
INTO JAPANESE
if(doingCrime(illegalAct)){if(intelligence == 'smart'){return'Don \ 't get catched';} else {return'Don't drop the soap ';}};
BACK INTO ENGLISH
if (doingCrime (illegalAct)) {if (intelligence =='smart') {return'Don \'t get caught';} else {return'Don't drop the soap';}};
Come on, you can do better than that.