No, you won't immediately lose child custody if you committed adultery. Singapore Courts will decide based on what's best for the children.