In fact, Spanish syllables only end in up to two consonant sounds (nearly always "ns" or "ks"), unlike English which can end in up to four consonant sounds (e.g. "texts").
Texts might end in four consonants in some underlying representation, but does anyone actually pronounce it that way? I think I reduce it to “Tex” unless I make a conscious effort to enunciate.