The rim of the strainer does not need to touch the rim of the glass, as the spring inside filters out the ice.
The rim of the strainer doesn't have to be in direct contact with the rim of the glass, since the spring inside functions as a filter, excluding the ice.