Do not attach within 1” of the end of your support member.  You don’t want to unnecessarily split your 2x4 or 2x3 by attaching the brace right at the very end of the board.  Rather bring it in 3”, 4”, or 5” or 6” inches away from the end to avoid splitting.  If you need to attach near the end, you should pre-drill your screw holes with about a ⅛” inch bit or up to a 3/16” inch bit for very dense woods.   As long as you have enough angle to still allow the brace to lift or lower the gate, this is key.  If you PRE-LIFT the gate before attaching the brace, then you should be fine even with some of the most steep angles of the brace.