1. إن تعدل الدنيا فكن

    أهلا للام التعديه

    If the world inclines, then be

    worthy of the lām of transitivity ('to/for');

  2. أولا فتبدلها بعن

    فتعود حالك مرديه

    or else replace it with ʿan ('away from'),

    so your condition becomes ruinous.