Gilt fund is safe like buying GSEC bonds directly?

I understand the experience in this case. But as per SEBI regulations, mutual fund purchases have to be made directly from your bank account, not from the funds in trading account.