On certain maximal subgroups of symmetric or alternating groups