Consider two adjacent airspaces of different categories. For example, airspace G is up to 2500' and above this is an airspace D. The border is at 2500'. Which airspace are you in if flying at exactly 2500'?
I recall a definition by ICAO that said that the border between such airspaces belongs to the less restrictive one, but I can't find that document.