Seems, rule-1 will be "if <Id> > ......." with ending rule "end".
and rule-2 will be "if <Id> : > ......" without ending rule.
It's so if "first/second" are Id. If they are expressions, then:
instead of <Id> add "skip tokens" for several token types: <Id> <Symbol> <String> etc.
You need to skip <Symbol> so symbols > and : must be of different name, e.g. <SymbolGreater>, <SymbolColon>