Login to the 2012 R2 Gateway Server
Start- Administrative Tools – Remote Desktop Services – Remote Desktop Gateway Manager
Right Click on the Server Name – Properties
Set the Value for –
Maximum Allowed Simultaneous Connections – Click Apply – OK