You should clear US customs and immigration when you land in
PR. Puerto Rico is a "possession" of the United States and is therefor US soil. There are no restrictions travelling between the mainland US and
PR. BTW, the Puerto Ricans have voted down "statehood" in favor of remaining a "possession" which has economic advantages.
Look at this website:
http://www.topuertorico.org/tinfo.shtml