The deduction for charitable and similar gifts, in the case of a nonresident who was not a citizen of the United States at the time he made the gifts, is governed by the same rules as those applying to gifts by citizens or residents, subject, however, to the following exceptions:
If the gifts are made to or for the use of a corporation, the corporation must be one created or organized under the laws of the United States or of any State or Territory thereof.
If the gifts are made to or for the use of a trust, community chest, fund or foundation, or a fraternal society, order or association operating under the lodge system, the gifts must be for use within the United States exclusively for religious, charitable, scientific, literary or educational purposes, including the encouragement of art and the prevention of cruelty to children or animals.
[Reserved]