Well, first of all in GAMS sets are different from numbers. When you define "i" as a set, you can never use an expression like "i<3" or "i<n". Instead you may use "ord(i)" (Ord(i) returns the number of the element being referenced relative to the total number of elements in the set) as a counter.
Besides, You can use conditional structure for upper or lower bounds. for example, instead of
"sum(i, start i=1 to n,...)" you may write "sum( i$( ord(i)<n) ,...)" which means:" sum over set i if ord(i) is less than n".
I hope it helps you.
Zahra.