The story
The root phrase is usually claimed to be a saying of Arabs or Middle Eastern cultures, roughly as follows: : Do not allow a camel to put his nose under the edge of your tent, for soon you will have a camel in your tent.
Etymology from Wiktionary, CC BY-SA 4.0.