How to prevent Taking right out a good 401(k) Mortgage

How to prevent Taking right out a good 401(k) Mortgage Generally…