YOU SAID:
by failing to prepare, you have prepared to fail
INTO JAPANESE
準備に失敗すると、失敗する準備ができました
BACK INTO ENGLISH
If you fail to prepare, you are ready to fail
INTO JAPANESE
あなたが準備に失敗した場合、あなたは失敗する準備ができています
BACK INTO ENGLISH
If you fail to prepare, you are ready to fail
That didn't even make that much sense in English.