Can a file geodatabase created in 10.5 be opened in 10.3.1?
I don't think so. Have a look at the table on this page:
Client and geodatabase compatibility—ArcGIS Help | ArcGIS Desktop
It suggests that a 10.3 client could open a 10.4 .gdb, but not 10.5.
Retrieving data ...