Deductions & credits

I did not understand the part "you can file your 2017 return as a nonresident alien if you only because an H1B in Oct of 2017 and you would be able to claim the treaty exemption". Also if I can claim treaty exemption then there is no reason to as a dual status, right?