Weak cosmic censorship in Born–Infeld electrodynamics and bound on charge-to-mass ratio