We prove a gap rigidity theorem for diagonal curves in irreducible compact Hermitian symmetric spaces of tube type, which is a dual analogy to a theorem obtained by Mok in noncompact case. Motivated by the proof we give a theorem on weaker gap rigidity problems for higher dimensional submanifolds.